Support » Plugin: A-Z Listing » Theming with multiple custom post-types

  • Resolved sumanshr

    (@sumanshr)


    Hi, Daniel,

    First of all, thanks for developing a such wonderful and handy plugin..!!

    Recently I’m facing in the theming section with that plugin. Here I have latest WordPress version and your latest plugin installed. Now what I need to know is that how to theme with a multiple post types from that plugin.

    What I have done is:
    -> I have copied your a-z-listing.php file into my theme, modified with my needs and thats works very cool with one custom post-types. (https://fairwaytravels.com.np/mountains/bjerge/ – this one is working smoothly)
    -> Again I have copied that file renaming with a-z-listing-{post-type-name}.php but here it doesn’t seems to be working. I have now stopped here.

    “Your copy needs to be placed within your theme at the theme root directory and called a-z-listing.php or a-z-listing-section.php (where -section is an optional top-level page slug for the section-targeting feature).”

    In the above statement, I didn’t get the idea of a-z-listing-section.php and how that exactly works. Do that section fufills my needs? You can check out the demo site in the above links.

    Please help!!

    Thanks and best regards,
    Suman Shrestha

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Llewellyn

    (@diddledan)

    Hi,

    The section name is the top-most page in a page hierarchy. It will only work when the short-code is on a page rather than a post or any other post-type. An alternative that is available is to name the template after the slug of the page/post that holds the short-code. For your specific example, try:

    a-z-listing-personer.php
    

    This is using the slug (personer) of the post/page located at /mountains/personer.

    I’ll try to get post-type names added as an alternative template name in the next update.

    Hi Daniel,

    Works smoothly..!!

    And I’m very thankful to your solution so far so good it resolved my issue with an ease.

    Once again, thank you very much for taking out your valuable time for solving my issues.

    Thanks and best regards,
    Suman Shrestha

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.