• Resolved jerryroxas

    (@jerryroxas)


    this looks like a great plugin, unfortunately, i can’t seem to get it to work ?? the setup and config panels are great and very user friendly, so i don’t think i’m doing anything wrong, but i just might be ??

    i’m running the latest version of the plugin, 1.9.2. i simply want to list posts on page that belong to the category ‘press releases’.

    here’s how i configured my list id 221:
    list type = posts
    posts = post type = posts, post status = publish, exclude self = no
    posts: tax query = categories = name: press releases
    template:
    [terms]

    1. [post_title]

    [/posts]

    [/terms]

    shortcode = [postlist id=”221″]

    i then added the shortcode to a page, and the list does not load. i do have two posts that belong to the category.

    can you please review and let me know why its not working? thanks!

    https://www.ads-software.com/plugins/w4-post-list/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    Hi,

    Your template seems invalid. A [terms]...[/terms] block is only required when your list type is “Terms + Posts“.

    What’s the difference of the two types ?
    Type = Posts is suitable when you are displaying posts without Group by Categories. You can filter them though to restrict within certain categories.
    Type = Category + Posts is suitable when you are displaying posts Group by Category.

    Thanks.

    Thread Starter jerryroxas

    (@jerryroxas)

    Never mind, I found the issue. I needed to set the tax query to filer of slug, not name. and i used this template instead, and everything now works fine!
    ==
    [posts]
    <div class=”[post_class]”>
    <h4>[post_date] : [post_title]</h4>
    <p>[post_excerpt wordlimit=”20″]</p>
    </div>
    [/posts]
    ==

    Thread Starter jerryroxas

    (@jerryroxas)

    Thanks, Shazzad, it looks like our comments were simultaneous! Everything is working fine now!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category list not showing using shortcode’ is closed to new replies.