• Hello I hope you are having a great day πŸ™‚

    My question is, if I choose to only show a few excerpts from a category. Is there a way I can add a next button to show the remaining results.

    This is the code I am using: [Category number=’9′ method=’excerpt’ order=’desc’ id=’11’ orderby=’date’]

    Right now I am revealing 21 excerpts and I would like to break it down to groups of 9.
    But when I do this, it only shows 9 with no button to view the rest.

    http://wordpress.org/extend/plugins/category-shortcode-w-generator/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Deyson,

    Any solution for this yet?

    I’m looking to do the same thing. When I list posts from a category using the short code, I’d like it to list like up to 5, then a new page with next 5, and so on for all the posts in the category.

    This is very similar to how the Category Archive page is set-up. Although I have found the php code that makes that page work, I cannot find an equivalent in the category_shortcode.php file. Basically, a variable and corresponding code need to be added to loop that says “max number of posts per page = x and once x is reached, create a new page, with a next or back button.

    If Robert Drake is out there, let us know at least where to look to add that functionality to the code.

    Thread Starter deyson

    (@deyson)

    Hello Joe. I have not found a solution for this. Sorry.

    If you find anything let me know please. Have a great day!

    Plugin Author robertdrake

    (@robertdrake)

    With how the plugin is currently coded, it’s not easily possible. The whole print out is a giant foreach loop ‘foreach($rdcsc_posts as $post)’. You could add a while loop to that to count up to the $rd_loop_postnum variable but thats a pretty bad hack.

    Really, if you want to have pageination you’re better off using a category template and a standard post loop. http://codex.wordpress.org/Category_Templates

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Category Shortcode] Add a next button to results.’ is closed to new replies.