Forums

[resolved] LoggedIn LoggedOut query_posts() (3 posts)

  1. ed4becky
    Member
    Posted 2 years ago #

    I have an odd situation. The following:
    http://jupiterthree.com/?page_id=1227&param=Secrets

    returns expected results if I am logged into the site, but if I am not, I get a sorry no posts match msg. Here is the page template I am using...

    ...
    $chapter = $_GET['param'];
    get_header();
    query_posts('meta_key=Chapter&meta_value=' . $chapter . '&showposts=-1&orderby=date&order=ASC');

    while (have_posts()) : the_post(); ?>
    ...

    Can anyone explain the behavior?

    Thanx
    Ed

  2. ed4becky
    Member
    Posted 2 years ago #

    Anyone? Help?

  3. ed4becky
    Member
    Posted 2 years ago #

    Problem solved. It wasn't an issue with the query. The page I was routing to was never published, so it showed up when I was logged in, but not when I wasn't.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.