WordPress.org

Ready to get started?Download WordPress

Forums

More Fields
[resolved] Slugs and Busted Pagination (8 posts)

  1. sassymonkey
    Member
    Posted 4 years ago #

    I'm looking for any ideas on how to either fix pagination or disable pagination on just the output page of More Fields slug links.

    EXAMPLE

    With a lot of posts resulting from a slug link, pagination does NOT work. So, if I had a slug working for:

    /artist/Iron%20Maiden/

    and there are more posts that can fit on a page, the following common WordPress URL is loaded for the second page and DOES NOT WORK:

    /artist/Iron%20Maiden/page/2/

    Any ideas on what to do to either fix this or simply disable pagination on any page used for More Fields slugs?

  2. sassymonkey
    Member
    Posted 4 years ago #

    This may help trigger someone's PHP brain to adapt for More Fields use on slugs:

    I found this snippet for removing pagination from Category pages:

    <?php get_header(); query_posts( 'posts_per_page=-1&cat=' . $cat ) ?>

    Is there some way to adapt this to More Fields slugs output?

  3. sassymonkey
    Member
    Posted 4 years ago #

    Is there a way to assign a specific template file to the More Fields slugs output in the same way you can for categories or archives?

    If I can assign a template file to slug output then I can create a template file with the above header modification.

    Any ideas?

  4. kalstrom
    Member
    Plugin Author

    Posted 4 years ago #

    Thank's for the bug report.

    We're looking into it and can hopefully fit it into the next release.

    (Of course: If you find a solution before then it's all good.)

  5. sassymonkey
    Member
    Posted 4 years ago #

    Great! Thanks so much for acknowledging the issue.

    If anyone finds any work-arounds in the meantime, I'd love to know. If not, hopefully the next release will be along quickly.

    More fields is so simple and flexible. I can't think of another solution that works as well. Thanks again!

  6. kalstrom
    Member
    Plugin Author

    Posted 3 years ago #

    @sassymonkey: We tried to resolve this issue with More Fields 2.0.3.

    Have you tested it out?

  7. sassymonkey
    Member
    Posted 3 years ago #

    It seems to be working perfectly! Wonderful!

    For those who want to know exactly what code I'm using:

    <a href="/author-name/<?php $key = "author-name"; meta($key); ?>"><?php $key = "author-name"; meta($key); ?></a>

    Where "/author-name/" in the anchor tag is the Slug specified in the field item entered with a custom field key of "author-name".

    Thanks so much for the quick turn-around on this issue. It really makes this whole plugin much more useful for a variety of projects in my opinion!
    _____

    BTW, I did notice a minor issue with the Advanced Settings section under Access. The check boxes do not remain checked after being selected and saved.

  8. kalstrom
    Member
    Plugin Author

    Posted 3 years ago #

    Great to hear!

    (I've noticed that issue too. It will have to rest until we release More Roles though. But thanks for the heads up.)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic