Define query_posts from Custom fields!!!
-
Hi! I’ve been struggling with this for a while now… wonder if this can be done…
This is my query_posts based on the post-slug.
<?php query_posts('name=my-post-title-name'); ?>
What I would like is… to define the “my-post-title-name” from the custom fields when writing a new post. Thought it could use a variable or something… not sure…
I call a custom field like this…
<?php if ( get_post_meta($post->ID, 'mykey', true) ) { ?> <?php _e("My value: "); echo get_post_meta($post->ID, "mykey", $single=true); } ?>
Any ideas pretty please?…
Thanks…
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Define query_posts from Custom fields!!!’ is closed to new replies.