• Resolved Xsjado

    (@xsjado)


    Hello, I am using LCP along with Buddypress and the Buddypress Docs plugin.
    Buddypress docs acts like a wiki. It uses its own custom taxonomy for the wiki articles “bpd_tag”. So I am trying to make a list of all the wiki articles that use the bpd_tag “reglement” https://mfc.football/docs/?bpd_tag=reglement

    LCP plugin version : 0.86.1
    WordPress version : 5.9
    the shortcode you are using : [catlist taxonomy=’bpd_tag’ terms=’reglement’]
    if applicable/relevant: it’s Twenty Seventeen.

    So I was hoping to use this shortcode to make a list of every wiki articles using the tag “reglement”, but it doesn’t seem to work. Am I doing something wrong?

    Thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Xsjado

    (@xsjado)

    I inserted the shortcode like this in the page (this is the only code in the page):

    <!-- wp:shortcode -->
    [catlist taxonomy='bpd_tag' terms='reglement']
    <!-- /wp:shortcode -->
    • This reply was modified 3 years, 1 month ago by Xsjado.
    • This reply was modified 3 years, 1 month ago by Xsjado.
    Plugin Contributor zymeth25

    (@zymeth25)

    What is the post_type of the articles you are trying to list?

    Thread Starter Xsjado

    (@xsjado)

    Is post_type and taxonomy id different?

    Plugin Contributor zymeth25

    (@zymeth25)

    Yes, each post in WordPress has a type, for example ‘post’ and ‘page’ are the two basic types most often used. The LCP plug-in displays only the post type by default but can be configured to display any other type.

    Post Types

    Thread Starter Xsjado

    (@xsjado)

    Hello, the taxonomy id is actually : bp_docs_tag
    and the post_type is : bp_doc

    Here is a page I inserted the shortcode : https://mfc.football/ressources/

    It’s giving a “Hello world” page, not the actual wiki pages I’m trying to get.

    Plugin Contributor zymeth25

    (@zymeth25)

    You need to set the required shortcode parameters correctly as per the documentation.

    In your case these are: post_type, taxonomy, terms.

    As per the docs linked above the plugin displays regular posts by default. To display any other post types the post_type parameter needs to be specified. So in your case post_type=bp_doc

    Thread Starter Xsjado

    (@xsjado)

    So I have to use all three?

    It works! Thank you!

    Plugin Contributor zymeth25

    (@zymeth25)

    So I have to use all three?

    Yes, if you don’t there is no way for the plugin to know what types and taxonomies you want. Whenever the default behaviour is not enough you have to specify a corresponding parameter.

    Thread Starter Xsjado

    (@xsjado)

    Ok thank you. Little issue but it might not be from your plugin, it seems the first list here doesn’t use bullet points. But I use the same shortcode structure.

    https://mfc.football/ressources/

    Thread Starter Xsjado

    (@xsjado)

    Mmm, for some reason it gets cropped by the table I’m using. It’s there when I center content. Probably not linked to your plugin.

    Thanks for all the help.

    Plugin Contributor zymeth25

    (@zymeth25)

    It’s surely a CSS issue but not caused by this plugin.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Custom taxonomy’ is closed to new replies.