I got two problems into one. Although there seems to be a million posts out there about this, none solves my issue.
FIRST: I need to gather all the posts having one specific custom field meta VALUE and list them in a page without any particular criteria (having the ability to decide how many to show would also be needed).
I inserted the following code in the page.php template to call the page that lists the posts with the specific custom field value:
<?php if (have_posts()&is_page('32')) : ?> <?php while (have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?>
and I am planning to insert the code that actually lists the posts inside the page editor in the admin panel (the function <?php the_content(); ?> calls the content of the page with the code). This brings to the second problem:
SECOND: The code inside the post editor is not getting executed properly (using whatever plugin to execute php inside post/page editors). Some of it is executed but queries really mess up everything.
Any idea? Thanks for anything you can come up with!
- The topic ‘Gathering all posts with one specific custom value’ is closed to new replies.