• JDK1313

    (@jdk1313)


    I am new to WordPress and have been doing fine until now. I am trying to use a plugin for index the categories in a food blog. Plugin is Post Category Index Generator. Website is https://kathrynskitchenblog.com.previewdns.com/

    The code I am trying to use is
    [pcig category=category-2 show=post_title links=subcategory_name,post_title order=asc orderby=title]

    My questions…
    What do I do?
    Do I just insert the shortcode?
    Do I replace category with the category name? Do I need to put all my subcategories under a recipe category for this to work?

    Sorry if these are silly questions, I can’t seem to find step by step instructions on the internet.
    Thanks in advance for your help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • chiaroscuro1

    (@chiaroscuro1)

    Just put your shortcode where you want the widget to be

    Thread Starter JDK1313

    (@jdk1313)

    I did that at first but I got this:
    There is no unique category with the slug ‘category-2’. Please insert a valid slug.

    chiaroscuro1

    (@chiaroscuro1)

    It seems like you would get that error if there is no content to display. Did you create a category 2 using the plug in? Did you look at the support section on the plug in page and see if anyone else had this problem and what the solution was? Are you sure you’re using the right shortcode? When you install a plugin, you need to look for all the settings that go with it. They could be in a new category or in the settings category in the left margin of WordPress, in the widgets section, or in a link on the plugins page.

    Thread Starter JDK1313

    (@jdk1313)

    Thanks for trying to help me. I’ve tried 3 different shortcodes and keep getting the same error.
    How do I create a category 2? And what is a category 2? There doesn’t seem to be any settings. I looked to the left and that isn’t there where I’ve seen others come up with options. And what do you mean by new category?

    Michael

    (@alchymyth)

    instead of ‘category-2′ you’ll need to use one of your categories’ slug;

    the slug is a sanitized version of the category name with all lowercase characters and linked by hyphens; you can find the category’s slug when you edit the category under dashboard – posts – categories

    https://codex.www.ads-software.com/Manage_Categories_SubPanel

    Thread Starter JDK1313

    (@jdk1313)

    Ok, I went into my categories and chose recipes as the parent. But I am still getting the same error. Do I need to type the name the shortcode? I’m so confused…

    Michael

    (@alchymyth)

    if you want to show the posts of the ‘recipes’ category, try:

    [pcig category=recipes show=post_title links=subcategory_name,post_title order=asc orderby=title]

    if you still have problems, please post in the plugin’s forum at https://www.ads-software.com/support/plugin/post-category-index-generator

    Thread Starter JDK1313

    (@jdk1313)

    Thank you, thank you, thank you!!!! It worked. You saved me from pulling my hair out the rest of the night.
    And I did post there, but found it after I posted here.

    Thanks again!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How do I use shortcodes?’ is closed to new replies.