Using custom field values to build a directory page
-
First of all this is a wonderful plugin, thank you.
I am trying to figure out if it is possible to build a post type that will serve as a series of landing pages where the content is selected by post name.
So the pages would be “built” by the editor inserting a series of post_name(s) for the content type
My thought was that since this query works:
‘
<?php query_posts(‘name=1950s’ ); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 class=”entry-title”>” rel=”bookmark”><?php the_title() ?></h1>
<?php the_content()?>
<?php endwhile; endif; ?>
‘
I could insert a custom field value in place of 1950s in this code
‘
<?php query_posts(‘name=1950s’ ); ?>
‘
Since this won’t work (on my localhost):
‘
<?php query_posts(‘name=<?php print_custom_field(‘lead_story’); ?>’ ); ?>
‘
Is there another way to make this work?https://www.ads-software.com/plugins/custom-content-type-manager/
- The topic ‘Using custom field values to build a directory page’ is closed to new replies.