Support » Plugin: Getwid - Gutenberg Blocks » How to show CPT Taxonomy in CPT Blocks Template

  • Resolved admincami

    (@admincami)


    Hi,
    thanks for the overall great Plugin!

    I have a question – is it possible to show custom taxonomy (category and tags) in the getwid block “custom post type”?

    I have created custom post types and taxonomies which are connected to my post types.

    It shows the custom post type and custom taxonomy just fine in the block editor. I wanted to edit the post layout and added meta (tags and category) to it, but it does not show up – not in backend or frontend. It only shows the date (when i add the “date” block to it). Now it also does not show wp core categories when i add them to my post, so i wonder if i am making something wrong here…

    Would really appreciate your help! Thanks 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • oh sorry, i saw that it does in fact show wp core categories, its only missing the custom ones…

    Plugin Support Dmytro

    (@dimned)

    Hi @admincami,
    Thanks for contacting us. Could you clarify the case providing some screenshots and page examples so we will be able to check it at the front-end?

    Hi, of course.

    the page that contains the Custom Post Block is: http://stage.idpau.de/newsletter/

    1) Here i chose my custom post type “Symptom Artikel”, works fine: https://ibb.co/pycT2Qg
    2) Here it shows my custom taxonomy “Ausgaben Nummern” (works as tags), that is linked to my CPT “Symptom Artikel”: https://ibb.co/5smHNqc
    3) Here i chose my custom template “Newsletter Artikel”: https://ibb.co/021yqZm
    4) Here you see the edit-page for my custom template. I want it to show date and tags (which is my custom taxonomy “Ausgaben Nummern”): https://ibb.co/GC6Jwf2

    It is not showing my tags. When i link it to WP Core Tags or put in “Categories” and link my CPT to a WP Core Tag (here i connected it to “News”), they show up – but never my custom taxonomy.

    It also doesnt show up when i apply my custom taxonomy in Admin Panel (See No. 2). However if i would want to only show certain posts with specified taxonomy then it filters correctly. The problem is only with showing the meta field.

    Infos regarding my CPT “Symptom Artikel”:
    name: symptom_artikel
    label: Symptom Artikel
    singular_label: Symptom Artikel
    description: “”
    public: true
    publicly_queryable: true
    show_ui: true
    show_in_nav_menus: true
    delete_with_user: false
    show_in_rest: true
    rest_base: “”
    rest_controller_class: “”
    has_archive: true
    has_archive_string: “”
    exclude_from_search: false
    capability_type: post
    hierarchical: false
    rewrite: true
    rewrite_slug: “”
    rewrite_withfront: true
    query_var: true
    query_var_slug: “”
    menu_position: 5
    show_in_menu: true
    show_in_menu_string: “”
    menu_icon: dashicons-text-page
    custom_supports: “”
    taxonomies: category / ausgaben_nummern

    Infos regarding my CT “Ausgaben Nummern”:
    name: ausgaben_nummern
    label: Ausgaben Nummern
    singular_label: Ausgaben Nummer
    description: “”
    public: true
    publicly_queryable: true
    hierarchical: false
    show_ui: true
    show_in_menu: true
    show_in_nav_menus: true
    query_var: true
    query_var_slug: “”
    rewrite: true
    rewrite_slug: “”
    rewrite_withfront: true
    rewrite_hierarchical: false
    show_admin_column: true
    show_in_rest: true
    show_in_quick_edit: true
    rest_base: “”
    rest_controller_class: “”
    meta_box_cb: “”
    default_term: “”
    Post Types: symptom_artikel / symptom_ausgabe

    I hope this helps clarifying the problem.
    Regards, Cami

    Plugin Support Dmytro

    (@dimned)

    Hi admincami,
    Unfortunately the tags block can display the tag of the Posts only. There is no block for custom taxonomies to disaply them as meta data of the post type.

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