do1do2
Forum Replies Created
-
Forum: Hacks
In reply to: How to get custom field value in the codeThank you very much.
The first post used in the public theme named “Selalu Ceria” download from WordPress.org Theme Channel.
Forum: Hacks
In reply to: How to get custom field value in the codehi,
<?php echo get_post_meta($post->ID, 'key', true); ?>the function is right.i can get the value in other themes.
but i don’t know how to transfer it into the sentence i wrote in the first post correctly.
if i replaced
get_post_meta($post->ID, 'key', true)instead of
echo get_post_meta($post->ID, 'key', true)in the theme used (the first post in)
no right value return but incorrect pages
Forum: Hacks
In reply to: How to get custom field value in the codeThank you.
I have replaced it as yours but only get the hyperlink “www.123.com” (it’s my website homepage website) unavailable to get the field value “www.abc.com”
other suggestions?
Forum: Hacks
In reply to: How to get custom field value in the codeHi,Ming
Thank you.
I replace the code with the following instead:
get_post_meta($post_id, $link, $single)
but get value “www.123.com”
“www.123.com” is my website
the “link” is my custom field key
Should I lost something or change something or add something? (Sorry,I am newbie for PHP).
How should I fix the code sentence?
Forum: Hacks
In reply to: How to get custom field value in the codeonly get return http://www.123.com/array
i want to get the custom field value “http://www.abc.com”
how to fix the code?