Homepage Problem after Update 4.2.9

  • Posted in : Read WP
  • Trusten
    Participant

    Hello,
    I have a Problem with the new update. I used to be able to limit the amount of post shown on my homepage, by adjusting
    $args_homepage = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => -1 );
    to something like
    $args_homepage = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => 5 );

    Since the update however as soon as I switch the “-1” to any other number it does not show any posts at all. “-1” works fine showing all posts, but no matter what number I put in (tried 1-15) it just stays blank.
    I haven’t touched any other part of the code. Could you please suggest what is happening?

    Mehmet S.
    Keymaster

    Hi,

    – it is weird.

    – try to set yes its option from theme options > blog > All Post Formats on Homepage.

    Thanks

    Trusten
    Participant

    It is weird, I always had that option disabled. This seems to be working, although now I have a different issue:

    I used to use this code:
    $args_homepage = array( ‘cat’ => 4, ‘post_type’ => ‘post’, ‘posts_per_page’ => 5 );

    to only display category 4 on my main homepage, which worked like a charm until this update. Any ideas how I can solve this?

    Trusten
    Participant

    any pointers?

    Mehmet S.
    Keymaster

    Add cat as a last parameter.

    Trusten
    Participant

    Hello,

    it seems that the problem was, that I haven’t updated my blog in a while. Appareantly the code still works, but there seems to be a time limit on old a post can be, that he doesnt get pulled by the code anymore.

    Please see landing page auf http://www.fernwehpflaster.de
    The most recent post is displayed as I have uploaded it recently, but all other don’t get fetched anymore. Is there anyway to get the older posts too?

    Thank you for your help.
    And by the way. Your support is really helpful. Thanks

    Mehmet S.
    Keymaster

    Try to increase the value of posts_per_page parameter.

    Trusten
    Participant

    Currently my setting for post by page is – 1, I tried around with everything between that and 15. It makes no difference unfortunately. At the moment my code is the unmodified pixel wars. But it is still the same iissue.

    Trusten
    Participant

    I manually changed the date of my posts to this month, and now it shows up. There must be something in the code that I’m not seeing that limits how far it goes back to fetch the posts, please advise.

    Mehmet S.
    Keymaster

    Sorry, I don’t know. Please check this page, maybe you will find a solution.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register