Custom Fields are fields that can holds arbitrary extra information known as meta-data.

learn more… | top users | synonyms (2)

-1
votes
0answers
6 views

Query posts with dates in repeater field with advanced custom fields plugin [on hold]

I have a post type called “property” where users can store properties to rent and I’m using a repeater field to allow them to set the dates in which the property isn't available, it looks something ...
0
votes
1answer
8 views

Advanced Custom fields - select field [on hold]

abit of an issue, (abit of a php noob) ACF documentation is not the best to follow. I'm trying to get conditional statements working with acf SELECT field. ...
3
votes
1answer
38 views

Order by meta_value_num DESC and meta_value ASC on WP 4.0

I have created a custom post type that I want to order by custom-field-1, which is boolean so its value is either 1 or 0, in DESC order (1 to 0) custom-field-2, which contains text and is supposed ...
0
votes
2answers
13 views

When creating a metabox do you have to create DB fields for the data?

I'm just getting to grips with metaboxes for the first time and after reading up on them one of the main question i have is do you need to specify fields in the DB to store the data got input. i.e. if ...
0
votes
0answers
9 views

get adjacent post by meta key and meta value

I'm trying to limit previous/next navigation to posts that have the same meta_value on a certain meta_key. I know this was asked before, but I couldn't pick a working answer. And all that I could come ...
0
votes
1answer
18 views

Show custom field if it exists, and show different elements if it doesn't

Basicly what I'm trying to do (with very basic knowledge of PHP): If Custom Field $randomname exists for that particular post, show the content of that custom field. If Custom Field $randomname ...
0
votes
1answer
39 views

CPT Repeatable Fields + Undefined Index

I'm using this code here for repeating fields in a CPT (yes, I know of ACF and a few others), and have tried to add a third field. The field is currently displaying in the meta box, and is output on ...
-1
votes
0answers
5 views

Problem with attribute “compare” in wp advanced search [closed]

I'm using wp advanced search to create a search form on my site (for searching in custom post type whith custom fieds). http://wpadvancedsearch.com/docs/ But the form doesn't find all the results ...
0
votes
0answers
20 views

Using custom fields globally?

I'm trying to use the value of one custom field on multiple pages and posts. I'm a newbie to PHP and custom fields so what I'm trying to accomplish could possible be done using a different method. I ...
0
votes
0answers
15 views

Custom Field for Individual Pages in Multi-Page Post

I have articles divided into multiple pages using <!--nextpage-->. I need a custom field say mycf holding different value for each individual page of the article. Also, I need a way to update ...
0
votes
0answers
11 views

Select value don't stay selected after save

I did a multiple select item that takes his options from another CPT, it works but after the saving the selected items don't stay selected. this is my code for the meta box global $post; echo ...
0
votes
0answers
20 views

Why is my blog theme not showing page and post content, or their custom field values?

I have created a proprietary blog theme, with the following: 1 custom post type 1 custom taxonomy Taxonomy X has 2 terms. Each term has 4 and 7 posts respectively. Each post has 5 custom_fields. All ...
-3
votes
1answer
18 views

Tons of Custom Fields [closed]

I recently worked on a website (wedding venues) that required tons of custom fields, more than 80 I believe and heavy customization. Suddenly wordpress seemed a bad choice of platform for this ...
0
votes
1answer
16 views

How to save values of a custom input field on the Network > Site Info screen

I'm struggle with implementing a custom input field on the screen of a Site Info in a Network. I've managed to create a field with help of this post but i have problems with saving the value. When i ...
0
votes
1answer
18 views

Comparing 2 Decimal Numbers from custom fields and displaying posts

This is really confusing me. Hopefully you can help me. What i want to do, is search for a number and display anything that is either minus 1 or plus one of the search result. The numbers that it will ...
0
votes
2answers
15 views

Filtered by a custom field, ordered by another

I am trying to loop custom post-types, filtered by a custom field artist-status => invited and ordered by another custom field last-name alphabetically. Here is what I managed to write, and it ...
0
votes
1answer
27 views

Display custom field meta outside loop, site wide

I've created a custom field ("breaking") with the goal that whenever one post has this field present, it will display the value in the header throughout the site (that is, all posts, pages, archives, ...
0
votes
0answers
14 views

Output terms based on custom fields

This question is rather specific. In my custom posttype "sak", I have a taxonomy called "vvpl". This taxonomy has a custom field called "revision" because a term have copies based on how many ...
0
votes
1answer
51 views

Enable a short code in the custom meta field

I was wondering if there is a filter that allows me to enable short codes to work inside the custom meta fields in my posts. I know the following code enables it in widgets: ...
0
votes
2answers
20 views

Add custom fields to existing posts (admin pages)

I'm able to add a custom field for new posts (in the admin pages), using the action hook wp_insert_post. But I would like to add the custom field for old posts, when I am editing the post (in the ...
0
votes
1answer
8 views

Post content is cleared when updating

When I'm updating a post, its content is being cleared. What's wrong with the code below? add_action( 'save_post', 'eb_save_subpage_data' ); function eb_save_subpage_data() { global $post; ...
3
votes
1answer
59 views

Pass all custom fields through the same filter on post load?

Is there a way to filter all custom fields on a post? Lets assume for very basic simplicity I have: standard fields of: title post body custom fields: author ISBN quote Lets assume on page ...
0
votes
2answers
43 views

How do I add custom fields to posts without having to manually add everytime I post?

I am new to wordpress but I was trying to add custom fields to certain posts but I don't want to manually add every time. I saw there is a custom post type class that you can specify but I didn't find ...
0
votes
0answers
16 views

Permalink structure depending on custom field

I'm trying to create a permalink structure that is only used when a certain custom field is filled in. For instance, when the custom field value of 'premium' is '1', I want to add /premium/ to my ...
0
votes
0answers
22 views

Add nofollow to custom field link and make domain exceptions?

I have a theme that enables users to comment a post, and also to add a link inside a custom field. I've tried a few plugins to try to force a nofollow attribute, but none seem to affected the links ...
0
votes
1answer
17 views

Function not pulling image or text from custom post type

//Custom Post Type register_post_type('inf_main_feature', array( 'labels' => array( 'name' => 'Main Featured', 'singular_name' => 'Main Featured', ...
0
votes
1answer
13 views

Display Custom Post if custom field is marked

I'm trying to get a custom post to show up on the front page only if a custom field I made is marked, otherwise it sould look for the one that is (and only one, not all marked). I currently have ...
0
votes
2answers
28 views

Best filter to use for modifying custom fields on a post?

What is the best filter for editing custom fields on a post? I am not actually editing the post content but some related fields. Would it be add_filter('the_content', 'edit_custom_fields');? It just ...
0
votes
0answers
10 views

Default custom column to off

Im currently building a plugin, that adds around 15 custom columns to a custom post type listing with meta data. When registering these columns they all default to being "on" in the screen options ...
0
votes
0answers
23 views

Get Custom Field Value of a $post_id on wp_insert_post Action in functions.php

I have this code in the functions.php file which emails the post content to the admin every time a pending post is added to the database: function send_email_on_pending_post_creation( $post_id ){ ...
1
vote
1answer
16 views

Custom Field Create Bulk via SQL Query

I have a question. A created a custom field named video_desc. I have ofer 2000 posts and I need to add this custom field to all posts and add the text "Description Here" to it. How can this be done ...
0
votes
1answer
22 views

Custom Fields Question

I'm new to wordpress and I am trying to understand these custom fields. I read the wordpress codex page refering to custom fields but I have some questions. I take for example my site. I created a ...
0
votes
0answers
15 views

how to store wordpress terms?

i have customized a wordpress form and added two new fields of type "radio". i got this post array but wordpress not storing radio button data. here is my code for adding radio : ...
0
votes
2answers
18 views

How to dynamically attach pictures to a carousel

I am trying to make single pages for each individual portfolio piece. I created custom posts & field types, but it only seems to allow one featured picture per post. Should I be adding my pictures ...
0
votes
0answers
16 views

Move Content of Custom Field to Post Content

Hello everyone I have a custom field in all my posts - the field is _listing_additional_info This is on a custom post type called listings. I need to move the content of those custom fields into the ...
0
votes
1answer
23 views

predefined custom field on registration page

What I want to do is, i have a professional theme (like elist from elegant theme) and in theme there are so many custom fields. I want to include those custom fields into my Wordpress custom ...
0
votes
2answers
38 views

What Is meta_id In wp_postmeta?

I am trying to add some data in WordPress Custom Field and via adding more direct records/data in wp_postmeta table via SQL query. There are four column as mentioned below... 'meta_id' - A unique id ...
1
vote
3answers
41 views

Categorising search results based on Custom Fields

I have two sets of posts - some have a Custom Field (true/false). So the ones which have a Custom Field (for this, let's just call it custom_field) value of true, go in one set, and the others (the ...
0
votes
0answers
37 views

Find field name and its applied filters

Currently, I'm trying to modify the calendar plugin in my Wordpress to accept line breaks in the field for the event's cost. I managed to remove the escape HTML functions from the views, i.e. if I add ...
0
votes
1answer
24 views

Custom Fields Bulk Edit

I have a question. I am running detube theme which has a custom field named "dp_video_code" in which i put my video embeded code. Recently the embeded code has change and I need to modify the video ...
0
votes
2answers
37 views

How to display custom post type ordered by a custom field date

I have a custom post type for a timeline activities. each post of them has a custom field type of DATE. field name :activity-date I'm using TYPES plugin for Custom Post Type and Custom Fields I ...
0
votes
1answer
38 views

Show related posts based of current ACF field name in a single page post (a loop within loop)

I have a single page where I display my current post. Within the post loop, I wanna display another loop inside that shows 3 other related posts by title that share the same text as the current post ...
1
vote
0answers
28 views

Add a custom meta box in the post options that loads some html code in the header

I run a blog that is built in the format - Logo - Nav Large Image + Email Optin Form Content / Sidebar Footer Now I want the large image and email opt in form to be optional. Right now, what I ...
1
vote
2answers
68 views

Get a custom field of all posts on current blog page

I am trying to get a custom field value from all posts listed on current blog paginated page. Not sure if it's clear, let me explain it more. On blog index page (or on second page of pagination) I ...
0
votes
0answers
4 views

Updated Answer to Archive Listings Filtered by Date Values in a Custom Field/Post Meta?

I'm looking to see if there is an updated solution to this problem that was solved 4 years ago. Archive Listings Filtered by Date Values in a Custom Field/Post Meta? A problem I'm having is that ...
0
votes
0answers
12 views

How can I use the archive functionality based on a custom field instead of the post date?

I'm building a product release date calender. Each post will have a custom field with the release date in it. I'd like to use WordPress's already built in archive functionality with the release date ...
0
votes
1answer
86 views

Selecting posts older than the current Unix epoch timestamp

I am trying to perform the following query, which originates by the fact the post's 'date' and 'time' are entered as separate custom fields. $args = array( 'post_type' => ...
0
votes
0answers
18 views

unable to access image attributes in wp_postmeta when looping through posts

I have an issue with accessing attributes of a library image, particularly the "Alternate Text" attribute. I use the ACF (Advanced Custom Fields) plugin to pull back the slideshow image which is ...
0
votes
0answers
19 views

How to add a field to live preview in post editor?

WordPress 4.0 allows live previewing of certain shortcodes while editing a post. How can I customise the options that appear when I edit my embedded video? I want to add a custom field below the ...
0
votes
2answers
38 views

How do I add and display a custom image field to a category?

How do I add and display a custom image field to a category? I know I need to use the hook 'category_add_form_fields' however I am not quite sure how... I am relatively new to wordpress so any help ...