• Hi All,

    pagination not working when using Pages Posts plugin. i used this to show the posts from a category on the homepage. everything seems fine except the post pagination. it wont go after page 2.

    also when I’m logged in i see a fatal error on bottom of the page

    Fatal error: Call to a member function get_queried_object() on a non-object in [dir path]/wp-includes/admin-bar.php on line 440

    if i disable the Pages Posts plugin no error.

    thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sounds like you need to stop using that plugin. It hasn’t been updated in over a year so there is no guarantee that it is compatible with WP 3.3.

    If your theme supports custom menus you could make your home link point to the archive for that category. You could also make a php template called front-page.php using query_posts e.g.

    <?php
    //The Query
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('posts_per_page=5&cat=XXX&paged=' . $paged);
    //The Loop
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    
    ?>

    In cat=XXX change the XXX to your category ID. You can also change the number of posts per page.

    Thread Starter pkeerthy

    (@pkeerthy)

    thanks for the reply. i need to put some text on the top of the page can i achieve it through this? below is the url of the site.

    http://sysdek.com/sites/malmita/

    If you are using a custom php template you can hard-code the text above the loop or use a php include if you want to store the text/code in an external file. You could probably also do it with multiple loop code, maybe storing the text in a Custom Post Type, but that may be overkill.

    You may also be able to use a Custom Field and this plugin:

    http://wordpress.org/extend/plugins/get-custom-field-values/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pagination not working when using Pages Posts plugin’ is closed to new replies.