The get-post-meta tag has no wiki summary.
4
votes
1answer
285 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 = ...
-1
votes
1answer
50 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
220 views
Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
QUESTION
This is following a previous question that was graciously answered by Milo earlier here - How to sort CPT by custom meta value (date), and return posts month by month
In short, I'm having ...
0
votes
0answers
11 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
49 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 ...
