Tagged Questions
0
votes
0answers
10 views
problem retrieving specific custom meta [duplicate]
I want to retrieve just 2 custom fields from my post, this is what I've tried:
<?php echo get_post_meta(get_the_ID(), 'CLUB','DATES', true); ?>
This code is retrieving just the first one ...
0
votes
2answers
44 views
display specific custom fields
I have few custom field assigned for each post, like:
"Club" with value "club1"
"Date" with value "date1"
and so on...
Now, I want to display from all the custom fields just those 2 " club" and ...
0
votes
1answer
74 views
Function to return values from metabox
I have created two custom metaboxes using the Meta Box plugin for my cpt called books, and I am confused how to output the values. The values need to be used in sperate places in one of my templates. ...
0
votes
1answer
519 views
get_post_meta - get a single value
When I do get_post_meta($post->ID, "company_wp_box_g", false) I am getting back an array of key/values pairs.
array (size=1)
0 =>
array (size=7)
'f_name' => string ...
0
votes
1answer
144 views
Run a check for multiple meta key values
I am having a heck of a time getting wordpress to display all values of a certain meta key correctly. I wonder if I am going about this the wrong way?
My end goal is to run a check to see if there ...
0
votes
1answer
135 views
How do I do If Post Meta DOES NOT exist? [closed]
I have the following code:
<?php $buycheck = get_post_meta($post->ID, 'buy-link', true); ?>
<?php if ( $buycheck ) : ?>
<div ...
0
votes
1answer
83 views
getting the post_id from the post_meta
I need to find out the post_id of a post_meta record where the custom key is 'XYZ' and the is 'ABC'? Is there an API for that?
Or do I need to run a regular select SQL with wpdb class?
0
votes
1answer
1k views
Retrieving multiple values to the Post Meta (using an array)
I'm having a problem retrieving post_meta values that I have stored in an array. I use this for storing the array:
add_action( 'comment_post', 'add_food', 1 );
function add_food(){
global $post;
...
0
votes
1answer
418 views
wordpress get_post_meta / the_meta to output custom field value
What I'm trying to do is quite simple: I want to add a custom field named 'Button' to each post that will show a button (image) on the page with the value as its link.
It's basically a button that ...
0
votes
2answers
469 views
Echo 2 values from one key in Array with get_post_custom
Edit 12/15/2011 Added Radio Button print code
// Add meta boxes to admin panel only needs to be added once
add_action('admin_menu', 'plib_add_box');
//Add meta boxes to post types
...
0
votes
1answer
162 views
Get author total post votes from post meta
In author.php, i have the list with the posts written by the author.
I'm trying to get the total number of votes, from the author posts.
All posts have a post_meta with a numbered value. i need to ...
0
votes
2answers
1k views
Unable to set Custom “Link URL” for Featured Image, and More?
I have an issue that I believe can be solved one of two ways.
I am using Featured Images in posts for content on a home page slider. What I would like to have happen is to have the destination links ...