Forums

Query posts name (3 posts)

  1. narkiej
    Member
    Posted 1 year ago #

    <?php query_posts('name=post-slug-goes-here'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_title() ?>
    <?php endwhile; endif; ?>

    Why is this not working for me? Thank you

  2. narkiej
    Member
    Posted 1 year ago #

    does nobody know this? Please help.

  3. vtxyzzy
    Member
    Posted 1 year ago #

    That looks like it should work. Did you replace 'post-slug-goes-here' with the actual slug of the post you want?

Topic Closed

This topic has been closed to new replies.

About this Topic