Questions tagged [custom-fields]

WordPress custom fields: author-entered post metadata

Related links

WordPress Documentation: Custom fields

1518 questions
0
votes
1 answer

retrieving WordPress custom field values

I have 2 custom fields in my post named Status and Version. I would like to retrieve the value of the field Status to display within the post. According to the documentation the following should retrieve the value. ID,…
Ben_hawk
  • 2,476
  • 7
  • 34
  • 59
0
votes
2 answers

wp_trim_words not working on anything but ordinary strings

I´m a bit out of my field here and I´m confused about this. Using wp_trim_field doesn't work for me except for regular strings. This does not work, it returns the whole text:
Johan Dahl
  • 1,672
  • 3
  • 19
  • 35
0
votes
1 answer

Shortcodes and Custom Fields

How do I get shortcodes to process properly in custom fields? I've tried using the code below, but I cannot figure out where to place it ("button" is the name of the field): ID, 'button', true) ) echo…
S. Fellig
  • 275
  • 2
  • 5
  • 13
0
votes
1 answer

If Custom Field Value exists display, if not display another Custom field value

I have a Wordpress managed web site at http://www.urbanvision.org.uk/ I have built it and everything works like I want it to and I'm happy with the outcome as it is my first fully built Wordpress web site. I've become stuck on a request I had at the…
Ben
  • 190
  • 7
  • 21
0
votes
1 answer

Wordpress: Replace value of the custom field based on the value of another custom field

I'm writing a wordpress plug-in for my site that replaces (or adds if it is empty) a value of the custom field based on the value of another custom field under the same post. Example: I will have a list with comma divided values like…
Dima
  • 517
  • 1
  • 3
  • 18
0
votes
2 answers

Creating a separate page to pass custom fields from parent post

I am having a content sharing site where i share themes and gadgets for windows 7. I am uploading the file using a custom field and storing its value in a custom field named durl. Now I want to create a separate page called "Download" and when a…
user1002272
0
votes
1 answer

Catch first img in post, remove it then associate to post as custom field?

In my WordPress blog there are more than 500 posts. Each post starts with small image. I want to remove those small images from inside posts and display them as Custom Fields. It will take me a long time to go through all posts and make the required…
0
votes
1 answer

WordPress - Hidden custom meta field for images

I'm trying to add a custom field to the media uploader in WordPress. I ahve it working, but I'd like to make the custom field key a hidden one. If you are familiar with the way WordPress handles custom fields, you'll know that setting the key to…
Drew Baker
  • 14,154
  • 15
  • 58
  • 97
0
votes
1 answer

Does "Custom Field Template" plugin have an auto-unpublish feature?

On a client site that I didn't help build but am currently doing maintenance on, they are using the "Custom Field Template" plugin to set dates for their posts in the events category. This is their template content: [Event Date] type=textfield…
Rosencruez
  • 171
  • 5
  • 13
0
votes
1 answer

How to do a group by in the Wordpress?

I have a drivers post type which has a relationship called team. I want to group drivers by team so I can output them together in their groupings 'teams'. Hopefully that makes sense. I don't really understand the documentation I have a tried a few…
Cool Hand Luke
  • 2,120
  • 9
  • 32
  • 51
0
votes
1 answer

Custom FieldRenderingControl Sharepoint 2010

I have created a custom field in and empty sharepoint project and I have overridden the FieldRenderingControl so I can create my own table layout when the item in the list is displayed. The problem I am having is that the ItemFieldValue in the…
Maxmanzero
  • 309
  • 3
  • 14
0
votes
2 answers

Display div only if exists other posts with same custom field value

I've got a wordpress theme with a set of custom fields. One of these is named "author". On single.php I've got a div which show the other posts with the same custom field value. I would like to display this div only if exists other posts with the…
Luca Frank Guarini
  • 1,193
  • 5
  • 13
  • 26
0
votes
1 answer

Sharepoint Extenal List and Custom Field Types

I have an odd issue. I have client that wants a sharepoint list what is populated from a WCFService. That part is working quite well. I have a bdcmodel that is mapping the WCF data and I can create an external list from the bdcmodel as well so that…
Maxmanzero
  • 309
  • 3
  • 14
0
votes
1 answer

Show custom fields from another pages

i have some pages with with custom fields, these custom fields info i will show under my menu by rollover as page description for other pages dynamically. get_post_meta($post->ID, 'page_desc', true) these works fine, but only for the current page.…
efendi
  • 15
  • 6
0
votes
1 answer

How to modify JS function ValidateAndSubmit on Editor Control Page in SharePoint (or add my own validation script)?

I have added my custom field type with custom properties. I add question with my custom field type and I check some constraints in OnSaveChange method of my FieldEditor. But I want add additional client validation before user submit "New Question"…
JIemON
  • 377
  • 1
  • 6
  • 19