• Resolved tfwebdevelop

    (@tfwebdevelop)


    Hello all, I am currently working on the following page – slightly NSFW burlesque website –

    http://www.thebarberbook.com/HIBALL4/routines/

    Each ‘Routine’ is a post assigned with the category ‘routines’ and then either ‘solo routine’ our ‘group routine’.

    This has worked well so far, with posts appearing as they should.

    The problem I am having is each section of routines ( Group, Solo etc. ) will not display more than 5 posts.

    I have had the majority of this coded externally, an am now trying to figure out what in the below code is causing this.

    Any help to fix this would be much appreciated.

    Regards
    Coz

    [large amount of code moderated – please use the pastebin]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael

    (@alchymyth)

    what is your settings under ‘dashboard’ ‘settings’ ‘reading’ ‘Blog pages show at most [] posts’ ?

    you might need to add a numberposts parameter to the get_posts() lines
    http://codex.wordpress.org/Template_Tags/get_posts

    Thread Starter tfwebdevelop

    (@tfwebdevelop)

    This is set to 50 posts. The Shows page lists around 30+ posts.

    Regards
    Coz

    Thread Starter tfwebdevelop

    (@tfwebdevelop)

    Code available here due to moderation or original post – http://pastebin.com/GhakEVfv

    Thanks for the lead alchymyth, but I was unable to find the right spot to include the numberposts parameter.

    Any more clues on this would be great.

    Regards
    Coz

    Michael

    (@alchymyth)

    you could try to add a numberposts value in these kind of lines:

    <?php $gr= get_posts('category_name=group routines');

    example:

    <?php $gr= get_posts('numberposts=20&category_name=group routines');

    Thread Starter tfwebdevelop

    (@tfwebdevelop)

    Thank-you alchymyth, that has worked perfectly. Cheers for taking the time to look into this. Much appreciated.

    Regards
    Coz

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

The topic ‘Help with formatting posts by category’ is closed to new replies.