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

learn more… | top users | synonyms (2)

0
votes
2answers
147 views

How can i call from custom fields to the category editor?

I found this code for custom field add category editor. I added custom field to the Category. e.g. My field name is Hastag and i have a Sport category. And i want to call display Sport's custom ...
1
vote
1answer
245 views

Deleting a custom field field

Is there a way to delete a custom field (in the sense of complete removal from WP database) without using a plugin?
2
votes
1answer
155 views

Making a configurable field translatable

I'm working on a theme right now that gives the admin the possibility to set different texts that are used within the theme, by configuring them in the admin panel (e.g. the text that is displayed, ...
1
vote
1answer
848 views

Using OR in WP_Query negates the “NOT EXISTS” compare

I'm attempting to filter posts by a custom field that either are equal to 'new' or have not been set yet. I'm able to get either of those meta_queries to work on their own but when I use them in an ...
0
votes
1answer
124 views

How can i display on front page a movie that is atached in a post type

Im building a cinema site, In post's i store the Movies I have a post_type name "box-office" , this post type have 1-10 custom fields, with i can select the movies stored in post's. locul_1 - is one ...
1
vote
1answer
206 views

How to Display pages with a Custom Fields in one page

I am trying to display all the pages that have custom fields of a certain value. What I would like to do is use the current page title as the value for the custom field and get all pages that have ...
2
votes
0answers
209 views

$wp_query meta_key naming issue [closed]

What I am attempting to do is sort posts by custom fields. I have a few custom fields that don't query properly and I get the 404 page. The fields that don't work I used hyphens in the naming ...
1
vote
1answer
115 views

How to display products name in a non-alphabetical order, in a custom field (taxonomy)?

Now the order is: apples, oranges, pears. But I want to be in a random order, for ex: oranges, apples, pears. Or to write them in a order that I want. Is this possible? Taxonomy is like that: ...
0
votes
1answer
787 views

Image upload and path to custom field

I build a script, to post from frontend. There are many custom-fields. Most works fine, but with one thing i have problems. First a description, then the script. It seems like, that images won't ...
0
votes
1answer
383 views

WP_Query arguments: Loop through custom post type - get all entries except excluded meta_key?

Can't seem to find out what I'm doing wrong. $args = array( 'post_type' => 'wr_event', // my custom post type 'posts_per_page' => -1, // show all posts 'meta_query' => array( ...
0
votes
1answer
104 views

added a meta box to post however when saving menu while debug on throws a warning

I've added several meta boxes to post and the function that suppose to save those boxes. When i save menus ( appearance -> menu). it throws a warning for each added menu or sub menu Notice: Undefined ...
0
votes
3answers
752 views

Currency (price) formating on custom fields

I need to format a custom field in admin area (post edit) as a currency, eq: 12.000,00 , with user typing only the numbers, the , and . automatic. Ive searched arround, with no sucess.. Anyone? thank ...
0
votes
1answer
571 views

Querying posts by latitude and longitude to build a Google Maps with several markers

I have 4 different post types and 4 differey taxonomies Each term for each taxonomy stores a marker (url to a png icon). Each post has coordinates attached with Advanced Custom Fields and I'll ...
0
votes
1answer
2k views

How to add add_meta_box to specific Page Template?

I want to add add_meta_box to specific page type like Page Template, Like Product Template. I am using this article http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/ ...
0
votes
1answer
318 views

how to make nsfw post with thumbanil

iam making a comic site like 9gag the front end upload page contains title upload image tags NSFW [checkbox] if every thing is normal the image become featured image of the post , i want the NSFW ...
0
votes
1answer
926 views

Get post-meta value of all custom-posts - lowest to highest year-count?

probably tough to describe: I have a custom-post-type called wr_event and a custom-field for it called event_date. I have a lot of posts and each of those posts has set an event_date. Pretty ...
3
votes
1answer
413 views

Custom fields PHP foreach loop

In my theme, I am using some PHP to display custom field content. It checks if the fields are empty before displaying the content, because the_meta was showing titles for empty fields. <div ...
0
votes
1answer
263 views

How to create download links based on Custom Fields with Rewrite API

For me this is quite hard to do, but I guess that this could be easily done by an expert. :) Let's suppose I have a post, which is a custom post type resources, with the following data: Post Slug: ...
0
votes
1answer
168 views

How can i get the actor birthday by date?

How can i retrive the actor birthday by Date. How i add the date, i have a custom field with Calendar. Now is 20th ... how can i retrive the Actor By this day I try this but it wont work ...
2
votes
1answer
1k views

Show Custom Comment Fields when editing in admin

I'm using the Custom Comment plugin to add custom fields to my comments. This plugin lets you define more fields for comment to let your visitors include their facebook, twitter and ... in their ...
0
votes
1answer
240 views

How to display posttypes and taxonomy in standard posts, not in a separate label?

I want to display some taxonomies directly in "Posts" label, as standard post, not in a separate label like "Books" for exp., but i don't know how. Is there a way to do this? This is the code: class ...
0
votes
1answer
85 views

How to display childrens custom fields?

I need help, I have a page that I want to display content from the page children, I get the content but not the custom fields! I've tried this but it dosnt work, what am I doing wrong? <?php ...
0
votes
2answers
120 views

How can I hide custom field from users used for caching response from external api?

I have a custom meta box created using Rilwis meta box script(http://www.deluxeblogtips.com/meta-box/) inside my theme functions.php. It has 2 text fields, one field is required to fetch results from ...
0
votes
1answer
210 views

How can I sort posts by the date and a custom meta field?

I have custom meta field that I use for the post rating. So I want to display posts by the date and the rating, but only for the posts that have specific rating. For example, I want to display posts ...
0
votes
2answers
170 views

How can i do custom author list?

My blog have many author. I can list all author. All Author list: <ul> <?php wp_list_authors('exclude_admin=0&optioncount=1&show_fullname=1&hide_empty=1'); ?> </ul> ...
1
vote
0answers
40 views

How to link keywords in custom fields?

I have come across different WordPress plugins that will automatically link/hyperlink keywords--to external links--every time they appear throughout posts. Here's an explanation of what I mean: Site ...
1
vote
0answers
95 views

Updating Other User's Metadata

I have created a custom user meta field, and that value is being used to get data from an external API and display it on the user profile page. On admin pages I have used the following code to make ...
0
votes
1answer
73 views

Rewriting a page driven by custom fields to populate a page dynamically, like posts

I'm relatively new to Wordpress and I received a site theme that was developed by outsourced developers. Due to the inevitable scope creep, i've had to modify pages to work with the new scope. ...
0
votes
1answer
324 views

Help with this custom field conditional if no field is set display nothing

I'm using the code below to display an image if the swap_select custom field value is true. If it's no it displays nothing. However when posts are first created no custom field exists. So what would ...
1
vote
1answer
372 views

Save an array from drop-down in custom meta box

I have successfully pulled a custom post type through into a drop-down that is in a custom meta box. However, when displaying it on the front end I would like to also provide a link to the actual ...
2
votes
1answer
205 views

Custom Fields vs Separate Table

I have a client who wants to be able to upload Posts using information stored in a CSV file. I've already got this portion working. Just recently, I changed the CSV File Uploader from pure PHP to an ...
0
votes
1answer
185 views

force category table refresh when adding new category

i wonder if there's a relatively easy solution to this : i have added a custom field to the categories, which in turn gets displayed in the right hand table under its own column name. (essentailly ...
0
votes
1answer
85 views

List custom field values ​​in alphabetical order without repetition from the current category?

I have this code: global $wpdb; $query = "SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = 'product_brand' ORDER BY ...
0
votes
1answer
1k views

Get post info inside modal window?

What I'm Trying To Do I have set up a custom post type for 'movies' and below is how I set up the template. Basically, I am trying to get a.thickbox (in the code below) to open a modal window with ...
0
votes
1answer
245 views

Incorrect data after modifying post using backlink from wp_die

I have hook: function myHook( $post_ID, $post ) { $data = get_post_meta($post_ID, 'data', true); if ($data) { _log('data:' . $data); /* here some checks and validation */ ...
0
votes
1answer
103 views

When editing a post with a custom meta box the values aren't displaying correctly

I followed this tutorial to create a custom meta box with a simple two option drop down. My code is below. The custom fields are saved when creating a post, and edit when I change the value and ...
1
vote
1answer
15k views

Display custom field value on woocommerce product page

I know similar questions have been asked dozens of times but I'm just not understanding how to display custom fields. I'm using woocommerce and want to display a custom field value on product pages. ...
0
votes
1answer
643 views

How to structure Multisite sites into categories?

When using WordPress Multisite with many sites, it would be nice to store them into categories. Site categories that is, not post categories. Maybe there is a way to use some kind of site meta / ...
1
vote
1answer
276 views

get_posts in meta box dropdown not showing latest posts

I’ve got a metabox I set up using WPAlchemy that allows authors to add a link to an associated post. It’s been working fine for months but now for some reason the dropdown with the appropriate posts ...
4
votes
3answers
4k views

Using meta query ('meta_query') with a search query ('s')

Trying to build a search that not only searches the defaults (title, content etc) but also a specific custom field. My current query: $args = array( 'post_type' => 'post', 's' => $query, ...
1
vote
1answer
157 views

Displaying custom field according to date

I am not sure whether this is an Advanced Custom Fields-related question, or a general PHP question, so I have also posted this to the ACF support forum, for those of you who are also looking for ...
0
votes
1answer
70 views

How do I enforce users to fill a determined custom field using WyPiekacz?

I have a Wordpress + Buddypress site. I've created two custom fields which must be filled in each post. Also, I have a form in a custom metabox to show them. I'm using WyPiekacz plugin to check for ...
2
votes
1answer
365 views

How to add dynamically the main parent pages's custom fields and their values to all sub-pages?

I have a main parent page with multiple sub-pages. The main parent page has some custom fields (meta boxes?) with specific values. My intent is to add dynamically these custom fields and their values ...
0
votes
1answer
646 views

dynamically add a custom field or metabox to custom post type [duplicate]

Possible Duplicate: Create more Meta Boxes as needed I am creating a plugin that registers a Custom Post Type. Let's call it "Cars". I am looking to be able to add custom fields(or ...
0
votes
1answer
179 views

Custom wpdb query - how to sort post by another table meta_count

Custom wpdb query code below works well but I need sort by stt2_meta table meta_count , <?php $querystr = " SELECT ID, post_title FROM $wpdb->posts ...
0
votes
1answer
390 views

How to change permalink on headlines in rss feeds?

On mysite.com/feed the headlines of my posts listed in the feed are linked to that posts permalink, for example mysite.com/my-first-post. This is standard behaviour. But sometimes I would like this ...
1
vote
1answer
858 views

How to call custom category field data in theme?

I am trying to add two custom fields to my categories (which I have done thanks to this answer - Any examples of adding custom fields to the category editor?) And now I need to call them within my ...
0
votes
3answers
274 views

Display a custom field rating system in the front end

I have added a content rating system to my platform where the authors can select which audience their post is appropriate for. Currently, these options are available: Unrated G PG ...
0
votes
1answer
206 views

loop through custom post-type with two meta_keys

I have a custom-post-type named my_project. This post-type has two meta-boxes: is_featured is_featured_position So essentially in my backend of the post-type I can set a checkbox for is_featured ...
1
vote
0answers
37 views

Displaying and searching Custom Posts

I'm trying to convert my existing web site from old-school HTML to WordPress, and have created a series of Custom Posts for my whisky tasting notes. However, I'm stuck trying to set up a page that ...