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

learn more… | top users | synonyms (2)

0
votes
1answer
103 views

Display different category template if custom field is checked

I am a big fan of Advanced Custom Field by Elliot Condon http://www.advancedcustomfields.com/ This is what I am trying to chive without success so far: I have a website with posts and archive.php ...
0
votes
0answers
21 views

How build search with filleting custom taxonomy and custom fields

I wanna explain about my search box, actually what i want to make. Ive a search input and few check boxes to filter the search result. i need to search like this : [Country1] AND ( [venue1] OR ...
0
votes
2answers
917 views

Saving Custom Post types and fields to a custom table

I have a project in which I am trying to import a large amount of data into a WordPress installation and from that data, create pages on my site (as a custom post type). Since these pages will be ...
0
votes
1answer
956 views

Importing Wordpress Posts With Custom Meta Data As CSV Files Through PHPMyAdmin

I have been importing data records as posts with custom meta data directly into Wordpress via the CSV Importer plugin. It works okay, however, there are some issues with it. Issues: 1) It takes ...
2
votes
2answers
191 views

Add custom field to media attachment image attribute in post editor

I have the following filter, but do not know how to add custom attributes to image field, when attaching media to post. example <img data-ext-link-title="" data-ext-link-url=""> ...
0
votes
3answers
68 views

Get YouTube video id from url in a custom field

Here's the scenario, I have a site with thousands of YouTube video posts which are stored in a custom field 'video_url' which is being used in a custom video player. The custom player I'm using now ...
0
votes
1answer
60 views

Guest Author - How to display posts on /author/ archive page

I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages. On the site blog, management will not be posting ...
2
votes
2answers
609 views

Set post title from two meta fields

In a custom post type I have post titles disabled, however in the list of posts and in the slug it just shows the title as "auto-draft". I want to automatically take two pieces of post-meta and make ...
0
votes
0answers
13 views

metabox is inserting only one value of checkbox [duplicate]

only one checkbox value is inserted on database,i want multiple checkbox value insert on database. What i want that, Multiple checkbox should insert on database and after insertion on database, ...
0
votes
1answer
361 views

SQL / wp_update_post: change post custom field to CPT post taxonomy

the setup is as follow: I have posts with a custom field: actor = 'tom hanks' for advanced management I created a custom post type (actors) and added "tom hanks" as a post within that actors taxonomy. ...
0
votes
0answers
73 views

multiple checkbox value is not updating in metabox

It is displaying all the values checked,i want to only show checked value checked,but now it is displaying all the value checked,i am not sure how to write condition for that Please let me know. ...
0
votes
1answer
334 views

Transfer taxonomy to custom field

I have a blog with movie critics and I'm using many taxonomies to add some informations about the movies, like director, actors or it's year. Using taxonomies is really useful to display all movies ...
0
votes
1answer
16 views

How to show a gloabl message on a user profile page (in back end)?

I want to show a global message for all users in their profile page. I do not want to edit profile.php what is the hook to do this? Basically I want to add a div to show a paragraph below the ...
0
votes
3answers
219 views

Update Custom post field by Ajax on cached site

My site cached by "wp-supper cache" plugin and "cloudflare.com" So my php function to count post views working incorrectly. I try to use ajax for it but I'm noob with JS code so I can not know where ...
0
votes
1answer
28 views

Populate a select box with data stored in the database?

I know generally how to add custom fields to the user profile page. However, I need to add a custom select box to the profile page that is populated with all the schools in the state. (Our users will ...
0
votes
0answers
30 views

Adding Custom Fields/editing description css in NextGen Gallery

Hello I am currently trying to build a vehicle selling page using wordpress & The Nxt-Gen Gallery. I am currently using the shortcode below to include the description underneath the thumbnails. ...
1
vote
1answer
28 views

Categories list into registration form

I'm trying to create a custom user registration form used for Educational website. Is it possible to automatically retrieve categories of posts (custom posts) in the registration form. The form ...
0
votes
0answers
44 views

Converting a checkbox filter for custom fields to a dropdown

I've been scratching my head trying to figure this out for awhile now and was wondering if someone could provide some help. My PHP knowledge isn't the best so I'm working with what I have and it ...
0
votes
2answers
452 views

How to exclude custom fields from search queries?

I'm building a hotel search engine and I've first created a custom content type "hotel" with Types & Views Toolset. I'm using "Search everything" plugin to query custom fields and custom taxonomy ...
0
votes
1answer
54 views

Query post order by post and desc not working

I have a query that displays post the order of the post 1 to 10 and front-end added: <?php print intval( $post->menu_order );?>º there shows 1º, 2º, 3º ... 10º must reverse the display but ...
0
votes
0answers
27 views

Custom Post Field -> Returning only the word “array”

So I've tried this: $output .= '<span class="team-member-venue">'.get_post_meta( get_the_ID(), 'venueofcoach', true ).'</span>'; Where venueofcoach is the metaname of the custom post ...
0
votes
0answers
8 views

Add another field with javascript or delete field

I need Help with code for wordpress I have a new field with price and i want to know how do i add button to add the new service in February filduri seerviciului name and price I ued this code ...
2
votes
2answers
3k views

Multiple orderby values in WP_Query

I'm trying to come up with a query to sort by multiple orderby values. Here's what I have so far: $dept_id=2; $query=new WP_Query(array( 'post_type'=>'wpcontactus', ...
0
votes
0answers
9 views

Selecting distinct days from a custom field within a range

I have an events custom post type that stores a date as a custom field named datestart. I need to select the distinct dates in this field, where they fall in a given month, and return those distinct ...
0
votes
0answers
50 views

Query for related posts by tags with custom field and custom post type

I've found a lot of very similar questions here, and have tried to use the (accepted) solutions without success, guessing I'm doing something very simple wrong and just can't see it so I'm hoping a ...
2
votes
1answer
430 views

Create child page within custom post type

I want to be able to have a link like this, site.com/my-custom-type-slug/single-custom-post-name/stats/, where /stats should contain the /my-custom-type-slug page content and when I add content to the ...
1
vote
1answer
22 views

Accessing loop functions (e.g the_title or the_content) from post ID

I have an array of post IDs obtained through complicated filtering code. I want to display posts from these IDs, and for each post I need access to regular post functions like the_title and such. More ...
1
vote
1answer
242 views

How to reload the role specific registration form on validation errors?

I test a solution for separate registration for different roles and it works very well. But the validation part/function (see bellow) on errors reloads/reuses the generic registration link and not the ...
0
votes
1answer
35 views

How to “group” (categorize) the Pages together?

I have a lot of Pages which can be (need to be) grouped under a number of different Categories. ** Then the more important thing is, i need to control those pages (of different groups) programatically ...
0
votes
0answers
21 views

Register author, facebook connect, publish posts from front end

I need little help to navigate me to the right method in these six steps. Need a facebook login, which when you connect you register in the site like a author. You have a register form to register ...
0
votes
1answer
35 views

WP Query between posts custom fields [duplicate]

I've tried doing a WP_Query based on a custom field, which name is 'date' and value is something like '14/01/2015'. I want the query to give results when 'date' is between today and tomorrow. All ...
0
votes
1answer
334 views

Display content between two dates?

I want to display a meta field between two dates, the admin can set the two dates via the custom fields. How can i make such content show between the dates set? Thanks Matt
0
votes
0answers
19 views

Insert blogname automatically in custom field on ecery post

I have a WP Multisite and looking for a way to add blogname to a custom field. I have the code setup to automatically insert show_name => custom_value to every post, now I need help to add the ...
0
votes
1answer
30 views

Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]

This has probably been answered before but I'm stumped so I'll ask anyway. I have a custom post type called products. I then have a custom taxonomy called product-category. I've set up a custom field ...
0
votes
1answer
44 views

How can I see a list of products that I have set to outofstock through a custom field check box?

So I have tons of products being displayed through my custom post type of products made by the 'Advanced Custom Field' and 'Custom Post Type UI' plugins. I made a very simple custom field named ...
0
votes
1answer
30 views

How to add an extra, independent set of custom fields?

I'm looking for a plugin or sth to let the admin enter a list of specs (name & value) for a given type of post. The regular custom fields would work perfectly but of course, they are used by some ...
-1
votes
2answers
1k views

Integrating WordPress Content into a jQuery Slider

I have a pretty basic 'featured-list - image slider' implemented above my content in my custom WordPress theme. How do I integrate WordPress content into the slider so that the slide content is pulled ...
0
votes
1answer
20 views

How do I use foreach to get content from a custom-field in multiple posts?

so I am trying to use a foreach to pull content from a custom field in multiple posts, but it just wont work. I can get it to work for a simple textarea string but I am struggling getting it to work ...
0
votes
2answers
332 views

Wordpress custom upload field error

I'm creating a custom upload field for a wordpress theme that uploads pdf files.The code is: function custom_news_meta_box($post) { $file_name = get_post_meta($post->ID, 'file_name', true); ...
0
votes
0answers
32 views

Custom post type in theme page

I am having a problem with a website I'm currently working on. I am using the theme Html5-Blank by Todd Motto and Advanced Custom Fields for the content. The problem is this: I am using a custom post ...
0
votes
1answer
199 views

After moving my site from a dev subdomain, to root, all my custom meta data is gone

I just movde my site from a dev subdomain, to the root. I have extensive amounts of data saved in custom meta fields which I created with the WpAlchemy class. All of this data is not appearing in ...
0
votes
1answer
44 views

Custom field and category query

I have created custom .php file that should show list of all posts that correspond to user's choice. I have 3 custom fields and 1 category condition. I've tried all the queries i could possibly find ...
1
vote
1answer
52 views

Add custom fields to search

I want to add a custom fields ("introduction" and "ensavoirplus") to search of Wordpress, but the SQL code is not exact. I don't understand if i do a mistake or if WP don't can do this. But my attempt ...
0
votes
0answers
15 views

How to make list of checkboxes based of number of distincs value of some custom field?

I need to make list of checkboxes based of number of distincs value of some custom field (Country) for visitors able to choose only post where this field Country the same as they are interested one. ...
1
vote
2answers
870 views

Added 20 Custom Fields. Only 10 showing in drop down

Just like the title states. I've added around 20+ custom fields into my wordpress site and only around 10 are showing in the drop down. The custom fields are all functioning fine on the site side, ...
1
vote
0answers
32 views

More efficient to add content to custom fields or the content area?

I often build themes that handle a lot of text content. I use Advanced Custom Fields to create several custom field areas per page for adding this content. I've also used themes with page builders ...
0
votes
1answer
57 views

Sorting posts by custom date fields (non standard date format)

I've inherited a website with a post type courses that has a custom field 'date-start', a Date Picker. Unfortunately the date start is stored as 'ddmmyy' and the ACF documentation implies that this ...
0
votes
1answer
41 views

Saving custom image meta fields

I have currently added a custom meta field for uploading a media file (image). I can successfully add the upload button to display and work but I'm having problems saving the field when updating the ...
0
votes
1answer
178 views

How to add upload field in a custom taxonomy?

I have a custom taxonomy and I want to add a custom field inside , OK that's seems to be easy but the hardest part is when I want to add a file input type the enctype="multipart/form-data" I ...
0
votes
1answer
17 views

Search posts missing a particular custom field

I am trying to search for posts that do not have yet set a particular custom field. The problem is that query down below returns an empty result. $args = array( 'post_type' => 'post', ...