Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tugbucket

    (@tugbucket)

    The simple answer is yes. But, there are lots of variables to a real answer.

    Are you going to make 26+ (assuming English) separate pages?
    Is this to done with a URL variable?
    Do you need the letter navigation still?

    Thread Starter offsocks

    (@offsocks)

    My plan is to do a paged listing of posts (special post type). Title (maybe tag or category for each entry + Letter navigation on top (26 pages, English).
    URL variable could be something like <a href="https://website/?letter=A">A</a> i guess.

    Numbered paged navigation (each letter would’ve 12 entries max per page) on bottom would be great since there are a lot of entries.

    Plugin Author tugbucket

    (@tugbucket)

    So you want to make individual letter pages for a custom post type.

    You can do something like this, find this line around line 230:

    $tags = get_posts(array('numberposts' => -1, 'sort_order' => 'asc', 'sort_column' => 'post_title', 'post_status' => 'publish', 'post_type' => $type, 'category' => $from_category, 'tag' => $post_tags));

    and you can replace it with: https://pastebin.com/9raX9ncL

    and you’re going to want a shortcode something like:
    [mctagmap show_posts="yes" css3="yes" post_type="your_post_type_here"]

    Notice the css3=”yes”, this is because when css3 is off, the code makes columns based off the number of letters and in this case, you’ll have only one. So you’ll need to style it on your own.

    With the pastebin code, you can pass a URL parameter of ?mctag=A and the page will only show the As.

    Hello tugbucket,

    I’ve tested and found it work fine with posts. But I want to use it with tags & custom taxonomy same as All ‘A’ Authors on this page: https://quotesgram.com/authors/A/1/

    Possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page per letter’ is closed to new replies.