Tagged Questions
0
votes
0answers
20 views
How do I retrieve a value from a multi - dimensional array using get_post_meta? [duplicate]
I know that I need to use
get_post_meta(31, $custom_repeatable, true); The post_id is 31 and the meta_value is $custom_repeatable. I would like to display the value hamsters repeat one only
. My ...
-1
votes
1answer
48 views
How do I just display the part of the array that I want to? [closed]
I would like to take a stored array, from the meta_value $custom_repeatable and just display the line 'hamsters repeat one', but the following code doesn't display it how I'd like.
Here is the code:
...
-2
votes
1answer
34 views
echo is just displaying the word 'array', rather than the array
I have a post_id of 31 , & a meta_value of custom_repeatable . But when I echo the variable (like below), all is says is array when I use the shortcode. I'm not bothered with the ...
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
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
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
...