• Resolved psperkins

    (@psperkins)


    OK – great plugin. I have been able to do some pretty fancy stuff with this – but what I would REALLY like is this:

    I have categories – cat1, cat2, cat3 (etc) and I have a “most recent” section.

    Where cat1 has 43 posts, cat2 has 17 and cat3 has 10.

    That would mean that “most recent” would have a total of 60 posts, which is just too many for a “most recent” category, and we’re just getting started. Imagine after there is 500+ posts (not far off).

    If I set the post limit to “10” for “most recent” then cat1 and cat2 will be truncated, while cat3 will be ok.

    ANY ideas welcomed.

    See what I mean?

    I can do this with normal threaded wp post loop using wp_query and a conditional statement but since this does not use a db query I cannot figure out how to write a conditional for it and feed the value into your script.

    I would like to use is_home() to determine if it’s “most recent” category or not since we are using the home page to manage the “most recent” stuff and a static page as front page.

    https://www.ads-software.com/extend/plugins/wp-page-numbers/

Viewing 1 replies (of 1 total)
  • Thread Starter psperkins

    (@psperkins)

    Well, if anyone out there is wondering, I did find a way to do this, and it’s working.

    Open wp-page-numbers.php and find the line
    function wp_page_numbers($start = "", $end = "")

    For me it was line 161.

    There are 3 globals delcared there, after those (on line 166 for me)

    I inserted: if ( is_home()) { $max_page = "10"; }

    Set the “10” to any number you’d like and use whatever conditional you’d like as far as is_home, is_page, is_tag, etc.

    Easy enough, after staring at the code for about a week.

    Hope someone sees this and it helps them…it’s a cool feature to have and makes the plugin do more.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Page Numbers] Category Dependent Numbering?’ is closed to new replies.