WordPress.org

Ready to get started?Download WordPress

Forums

probleme with Sobek'posts in category (7 posts)

  1. bricevp
    Member
    Posted 6 years ago #

    I am using the plugin Sobek'posts in category.
    Unfortunatly, after having put the following code on my page :

      <?php sobeks_posts_in_category(6) ; ?>
    only one post appears instead of the list of posts composing the category n°6.

    Please, do you know why ?

  2. MichaelH
    Member
    Posted 6 years ago #

    Please provide a link to download the plugin so volunteers might duplicate the problem.

  3. bricevp
    Member
    Posted 6 years ago #

  4. MichaelH
    Member
    Posted 6 years ago #

    Did a clean 2.3.1 install, installed/activated that plugin, created a new Category, wrote two posts and assigned that Category, put <ul><?php sobeks_posts_in_category(3) ; ?></ul> code in wp-content/themes/default/sidebar and it displayed the two posts.

  5. smoczokwik
    Member
    Posted 6 years ago #

    There is one thing I noticed: being in a different country and having set another timezone in the blog settings the plugin may delay displaying the posts until the time where server time equals the time your blog assumes.

  6. hami
    Member
    Posted 6 years ago #

    It's the server time versus blog time offset.
    If you change post date in the SQL query in line 76 from
    AND {$wp_tp}posts.post_date < NOW( ) to AND {$wp_tp}posts.post_date != '0000-00-00 00:00:00'.

    After that it should work fine.

    / Hami

  7. Opally
    Member
    Posted 6 years ago #

    thanks for this! Solved my problem, too! This is a great plugin for making WP a CMS.

Topic Closed

This topic has been closed to new replies.

About this Topic