Support » Plugin: Alphabetic Pagination » filter by custom post type

  • Resolved LucyTech

    (@lucytech)


    I would like to use this plugin for a custom post type. When you click on the ABC letters I want to show only the posts where the post title starts with that letter.
    However, at the moment the page is just reloading and nothing is being filtered.
    Under settings ‘display on all lists’ I don’t see an option for custom post types. Is this possible?
    How do I make this plugin work?
    I’m trying to use the following shortcode and the page displayed is http://naiveartonline.com/WP/TestSite/artists/?ap=a
    [ap_pagination]

    [list_posts post_type=”artist” orderby=”title” order=”ASC” style=”grid4″ limit=”16″]

    Thanks

    https://wordpress.org/plugins/alphabetic-pagination/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    Try to use “Auto” in your settings instead of “Custom”. You don’t need to use shortcode for it. Let me know if it works?

    Thanks,
    Fahad

    If I set it to Auto then it is working well but I don’t want it to show on every page only on one page.

    I’ve changed from the first code above and hard coded the page layout now. Where should I put

    <?php echo do_shortcode(‘[ap_pagination]’); ?>

    I’ve tried putting it inside and outside the while loop but only the ABC shows and the url will change eg http://naiveartonline.com/WP/TestSite/artist/?ap=i but it just reloads the page, it doesn’t filter the posts.
    Where should I put the do_shortcode?

    Also (on Auto, when it is working)
    because I’m using pagination the URL changes to say then when I click on a letter I get http://naiveartonline.com/WP/TestSite/artist/page/2/?ap=i and a page not found error.
    How do you use the plugin with pagination?

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    It works with pagination too. I will check it again that why its not working in your case, and will come back to you with shortcode thing as well.

    Thanks,
    Fahad

    Hi,

    I have exactly the same problem : I made a custom post type with a special taxonomy. On “the display on all list?” option i answered no and selected my new taxonomy.

    The pagination appears on the right page but the links doesn’t works and the post are not filtered in alphabetical order.

    A little hand on this problem would be nice 🙂

    Thanks

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    Sure, i can help you. Please provide me the URL here and if you can provide wp-admin (test) login credentials so you may send them through contact form on my blog.

    Thanks,
    Fahad

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘filter by custom post type’ is closed to new replies.