Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • afc32

    (@afc32)

    Okay…I think I actually found the root of the problem. What we would like to do, and I’m not sure if this is what was intended by the plugin designer, is for the categories we’re setting as pages to neither be archive or category page types. Essentially what I needed to do was add these two lines in a few places in the plugin’s functions.php file:

    $GLOBALS[‘wp_query’]->is_category = false;
    $GLOBALS[‘wp_query’]->is_archive = false;

    Here’s a copy of my functions.php file:
    https://dl.dropbox.com/u/2953302/functions.php

    Just put this in wp-content/plugins/pages-posts. I didn’t have much time to make this look clean, so I just simply copied and pasted those two lines above in all three cases of this one if-statement.

    With this change, you can change that line in archive.php back to the_excerpt from the_content…

    Let me know if you have any questions. Hopefully the plugin designer sees this and gives some input.

    afc32

    (@afc32)

    I just had the same problem and fixed it by hacking around… Turns out the solution is most likely editing a file in your theme, not this plugin. Basically search around in your theme .php files for any mention of “the_excerpt” and change it to “the_content”. In my case, the culprit was the category.php file in my theme.

    The bad: now whenever someone views any of my categories, it will show full posts. The good: I only want people to view my categories through my menu as pages, so I can now use this plugin to decide whether they should show up as full or excerpt posts.

    Therefore for now I’m going to leave my hack as is…it’d be nice if there were a way to override my themes ability to choose excerpt over full-post though… Maybe I’ll look into that another time. Let me know if this helped…

    -Andrew

Viewing 2 replies - 1 through 2 (of 2 total)