Custom Fields are fields that can holds arbitrary extra information known as meta-data.
0
votes
1answer
5 views
If custom field is doesn't empty shows field, if is empty, show a featured image?
I tried and shows me both.. http://pastebin.com/thQkStqQ
what i have done wrong?
0
votes
1answer
10 views
Apply the_content filter to a custom field with multiple values
I have a custom meta box set up that allows users to paste the Youtube URL of a video so that it can be embedded into a post/page.
The meta box can be repeated so that a user can add as few or as ...
0
votes
1answer
16 views
The conditional logic only works to show or hide?
I am using the Advanced Custom Fields for custom fields in the User Profile. I use conditional logic to display one of between four fields, each field will be displayed according to a radio field ...
0
votes
1answer
16 views
Order by Custom Field date not recognized
Ok, so I have this custom field wpcf-evento-data-inicio1 generated with the (great) Types plugin.
This is how it stores on db:
1372896000
OK, so I want to order by this value. I'm doing it by url ...
0
votes
1answer
20 views
Formating content in category.php
I am using WordPress 3.5.1 / Twenty Twelve theme.
I am using custom fields and displaying them in category.php in the following way, the php is setup inside category.php in the "/* Start the Loop */ "
...
0
votes
2answers
27 views
Customizing the display of custom post types
Currently I have a custom post type and I would like to have some different version of it based on user input - so for example when creating a post the user can select if the post is Featured or Free ...
0
votes
1answer
37 views
Display selected parts from selected pages on the frontpage?
I'm build a site for my company and want to display four (of my choise) of our special deals on our frontpage.
A special deal is a page.
I want to grab:
Featured Image
Page Title
Price (taking from ...
0
votes
1answer
18 views
Get multiple posts with some custom fields efficient
Is there an efficient way to get some posts with (some of) their custom fields in one go?
I have a custom post with some custom fields and would like to create an overview page where I display all ...
0
votes
2answers
26 views
meta_value and meta_key filtering returning no posts [closed]
this might sound like a very stupid question, and I am almost ashamed to put it here... however, after using the code straight from wp codex, and trying a couple of other variations from googling ...
0
votes
1answer
17 views
updating one custom meta field only
i am trying to update only one custom field that is store in serialized form. By updating that field my other custom meta fields becomes blank/empty.
how can i update only a specific meta value ...
0
votes
0answers
19 views
How to retrieve hidden custom fields from a post? [closed]
I've read that is possible to "hide" custom post meta fields if the fields are prefixed with an underscore "_". However, I do need now to retrieve some data that is likely being stored in one of these ...
0
votes
1answer
20 views
Update Wordpress Custom Field with AJAX on cached page
I'm new to ajax am trying to create a simple hit counter that updates a custom field in Wordpress after the page loads. The page is cached, so any attempts to use PHP alone will not work.
I'd like ...
0
votes
1answer
29 views
Repeatable custom meta select boxes
I am working on meta fields for a custom post type storing match data.
I have two sepearte meta boxes one which the team and the score are chosen and the values are submitted.
The second takes that ...
0
votes
0answers
16 views
WP Views - filter by custom fields in post type child
I am a junior WP programmer and I got stucked on creating a WP types filter.
I have to solve the following task:
I have a post type called trips (with multiple trips - trip A, B, C)
Post type ...
0
votes
2answers
19 views
Post selector as Custom Field
I would like to add a custom field for user to select a existing post or page to a post. (eg as related post, or as similar post...) a way that the user can browse trough exisisting and published ...
0
votes
1answer
23 views
Delete post based on a custom field?
I am trying to delete a post based on a custom field value called randomid.
$querystr = "
DELETE FROM $wpdb->posts LEFT JOIN $wpdb->postmeta
WHERE $wpdb->posts.ID = ...
0
votes
1answer
24 views
Adding a custom field into the_content()
Anyway to add a custom field into the_content() somehow?
I have the AddThis plugin on my site and it shows up at the bottom of my site right before my custom field, I would like my custom field to ...
0
votes
0answers
33 views
where is the data saved and how can i access it/ print it out in woocommerce fields
i have came across
http://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
these docs for woocommerce, and they shows you how to create a field using this ...
1
vote
1answer
30 views
Underscores in custom fields
I am somewhat new to WordPress. While trying to perform a WP_Query using meta_query(), I had some trouble because the custom fields created by a plugin had _ in the beginning of its name.
Although I ...
0
votes
0answers
23 views
Display each custom field value saved in array on woocommerce
This probably sounds similiar, but i have not found a solution for it. I'm using woocommerce and want to display each custom field value saved in a array.
i have this function that updated each value ...
0
votes
1answer
23 views
Not sure why my custom post meta field isn't saving
I'm having trouble getting my custom post meta field to save and I'm not quite sure why. I was following the tutorial located at ...
0
votes
0answers
28 views
Custom field data is not saving
I only have this code, which is in functions.php. I can see the field in admin page, but the data is not saving.
add_action('add_meta_boxes', 'home_page_template_meta_box');
function ...
0
votes
0answers
24 views
Linking custom post types to posts and vice versa
Im developing a smaller wp solution and we have both blog posts and products (custom post types) Id like to link them together so when you read blog posts it will suggest relevant products (that we ...
0
votes
2answers
39 views
Displaying a custom field in Category Archives
I am using WordPress 3.5.1 / Twenty Twelve Theme.
I would like to display a custom field in my Category Archives.
I have the following custom field working in my single.php , it displays a custom url ...
0
votes
1answer
45 views
How to oEmbed from custom field, responsive to container size and responsive
I am using Magic Fields 2 to add custom fields/meta boxes.
One custom field is for a Vimeo or YouTube video URL to be displayed.
The following code oEmbeds the video URL:
<?php if ...
0
votes
1answer
21 views
same custom field for single posts
I have a custom field for my blog page that displays a "custom title" in the header. When i click one of the blog posts on that page the "custom title" isn't there. I would like it to be the same ...
0
votes
1answer
19 views
Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
I've built two WordPress sites. One is public site--people go to it, view my content, etc. The other site is a private course catalog. In the course catalog I have 3 custom post types. The content of ...
0
votes
2answers
33 views
Create shortcode for list of custom post titles with custom fields alongside
I'm stumped. I've looked at various sites but haven't found the exact code I need.
Basically I want to create a list of custom post titles with the date from one of the custom fields for that post ...
1
vote
1answer
49 views
Using Custom Function With Advanced Custom Fields
I've written a custom function which works with the native WordPress custom fields function but I need it to work with the Advanced Custom Fields plugin.
I have created the custom field and meta box ...
0
votes
1answer
30 views
Display custom posts in checkbox list
I am working in a WordPress backend design and I would like to know if is there any function like wp_categories_checklist but for posts.
I have an issue here: ...
0
votes
1answer
25 views
Get custom field from other post in carousel
Im using a plugin called wp carousel to display custom post types in a carousel in the footer in the singular view of posts. By default the plugin gets the featured image and the title of the post, ...
0
votes
1answer
32 views
Custom field default value with counter
I have a custom post type called machine and a custom field 'reference_number' what I want is to add a default value to the custom field when creating a new machine and show this value before the ...
0
votes
1answer
23 views
WordPress Meta Query: Relation is not working correctly
I make a custom search box and let user do search. I have added required field to my editing panel by custom meta box. I have a post which have some meta data like London as place and 13021 as post ...
0
votes
1answer
20 views
2 orderby in wp_query with 2 custom fields
I'm triyng to display hotels (taxonomy which i have created) by two 'orderby' with wp_query but i'm not success.
Results looks likes:
Hotel 1 : 2 persons 5 stars
Hotel 2 : 2 ...
0
votes
1answer
29 views
Automatically add a character to field in edit post page
Currently I am facing an issue involving making two plugins work well together. I am using a form plugin called formidable to create a new location custom post (custom post was made from a plugin ...
0
votes
0answers
24 views
Fields for different parts of a page
I'm going to use WordPress to manage a mainly static website.
Some of the pages (like the typical about us) have some paragraphs that should be editable from the admin panel. The thing is, I don't ...
-1
votes
0answers
44 views
Calendar Widget displaying posts by custom field (date) [closed]
I created a website build around a custom post type events. These events have custom fields, one of them is the event-date (the date the event is happening, NOT post publish date).
I'd like a calendar ...
0
votes
1answer
15 views
Limit of char count in WP custom fields
does anyone of you know what is the limit of chars count which can be stored in to database via WP custom fields? Let's say that I would want to add to custom field 20 000 chars. Would it be problem?
2
votes
1answer
53 views
little help with a mySQL query to wp database
@t31os gave a very helpful response to:
getting all values for a custom field key (cross-post) by providing this function
if ( ! function_exists( 'get_meta_values' ) ) {
function get_meta_values( ...
0
votes
1answer
30 views
How To Show Get Adjacent Posts If Posts Are Sorted By Custom Field
I want to get the ID of adjacent posts.
For posts sorted chronologically you can use:
get_adjacent_post
Are there any standard methods for finding the adjacent post if the posts are sorted by ...
0
votes
1answer
49 views
Display posts order by custom post in a dropdown menu
In my WordPress backend I have some custom posts and, in one of them, I want to display in a dropdown field some posts related with but ordered by post type. Iwant to display something like this.
...
1
vote
1answer
21 views
Remove old custom field after import
I have imported a set of posts to a new Wordpress install recently. This OLD set of posts had a set of custom fields attached to it (via post_meta using the ACF plugin). The new installation has ...
0
votes
2answers
14 views
Show image if author meta (profile fields) exists outside loop
I am trying to show the profile fields (like AIM, Jibber) outside the loop. I managed to do that with
<?php
global $post;
$author_id=$post->post_author;
?>
<?php
$field='aim';
...
0
votes
1answer
41 views
Automatically fill custom field value on post publish/update
I've searched around a bit, and I'm having trouble finding an answer to this question. What I'm trying to do is automatically fill a custom field when a post (custom post type) is updated or ...
0
votes
2answers
22 views
Displaying custom filed content instead of post content
Plugin allow to add a custom field in post/page.
In post/page, i create a custom field, so user can input content on this field.
And i want if user input to this field, the post/page will display ...
0
votes
2answers
50 views
Sum custom field values of particular taxonomy
I need to sum custom field values of a custom post type with a particular taxonomy ONLY.
For example...
Custom Post Type: Computers
Taxonomy: Laptops
Custom Field: Quantity
How can I get the ...
0
votes
2answers
57 views
Save Custom Fields
I am working in a new project using WordPress. I have created some Custom Posts and now I have to relate some custom posts like categories.
I created a custom dropdown menu inside the custom posts. ...
0
votes
1answer
30 views
Meta value Array
I am hoping someone can help me out.
I have created a custom meta box and trying to store an array, but when using update_post_meta, it doesn't seem to be storing it as an array.
I am getting the ...
4
votes
1answer
295 views
What is the index [0] for on post meta fields?
Trying to improve my PHP knowledge through test and try! I am confused on [0] arguments at following WordPress PHP code
global $post;
$custom = get_post_custom($post->ID);
$price = ...
0
votes
1answer
38 views
How to calculate custom field value (average)
I want to calculate the average value (or other calculation if possible) of several custom field values in a post. For example, I have 4 custom fields in a post, custom1 to custom4, value from 1 to 4 ...



