• Resolved swamparoo

    (@swamparoo)


    Installed the plugin. Modified my index.php file of my theme. Unfortunately, I just don’t seem to see any documentation. Under the Installation section it says “see the php section of this document for details.” What document? I’ve tried visiting the author’s website but don’t seem to see any documentation there.

    I’m wishing to accomplish a relatively simple goal. I just want to list the posts from a specific category. Normally that involves using a shortcode and including either the category name or ID.

Viewing 6 replies - 1 through 6 (of 6 total)
  • For listing the post from a specific category you should use the following shortcode that worked for me:

    [a-z-listing post-type=”post” taxonomy=”category” terms=”category-slug”]

    I also had the same problem and the answer at the FAQ section saying to use ([a-z-listing taxonomy=”taxonomy-slug” terms=”term-slug”]) wasn’t useful for me.

    • This reply was modified 6 years, 3 months ago by jguillot.
    Plugin Author Dani Llewellyn

    (@diddledani)

    Regarding “see the PHP section” the document that I’m referring to is the page you were reading. That page is created using the readme.txt from the plugin directory so you could use the readme instead.

    Thankyou @jguillot for posting the shortcode, though I’m curious why you say that the documentation telling you to do exactly what you did is “not useful”? The only difference between the documentation and your shortcode is that you set the post type to post instead of the default page.

    @diddledan, I see know, the documentation is OK. I really didn’t see the relation between a “taxonomy-slug” with “category”, sorry for my poor knowledge about WordPress, I am a newbie ??

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’ll add some clarification to explain the relationship between taxonomy and category in the readme.txt for the next version, which will also update the plugin entry on www.ads-software.com.

    Thread Starter swamparoo

    (@swamparoo)

    @jguillot, thanks for your response. That worked perfectly I put that shortcode on a page and modified the terms value to be the category I wanted posts from and it loaded all of the posts in that category with no issues.

    I understood the shortcode with the term taxonomy. However, I only understood it from very briefly using Drupal. Drupal loves taxonomies. Looking over the readme.txt, I see the examples of the shortcode listed there.

    In a somewhat unrelated question.. What is the best way to increase the width of the list of posts? For each post title in the A-Z listing, it can only accomodate about two or three words before it goes to a next line. I see tt would be nice to have the title (i.e. longer than two or three words).

    @swamparoo, your welcome. You can find the answer for your last question on the following thread. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Documentation and Posts By Category’ is closed to new replies.