Place category schema – are these documented somewhere?

This topic contains 7 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #428437

    Ashok Malkarnekar
    Expired Member
    Post count: 12

    Am trying to understand how the schema types for categories work, are these documented somewhere, is customisation possible? And in how far are different schemas different from Custom Post Types?

    Is there an easy way to retrieve and insert the number of entries in a category/sub category into html copy eg through shortcodes?

    Thanks,

    Ashok

    #428438

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    Schemas are schema.org types, and provide meta-like information within the code of the page in ways accessible to search engines or other applications. There is no interface to adjust the settings of individual schema.

    Maybe you have a question about Custom Post Types?

    For category count, check out CTP Category shortcode and let us know if that is what you are looking for: https://wpgeodirectory.com/docs/core-shortcodes/#ctp-cats

    #428441

    Ashok Malkarnekar
    Expired Member
    Post count: 12

    Hi,

    thanks for the quick response – maybe better if I outline what I intend to do;

    1) a number of different categories are required, data will differ between the categories – am trying to find out if this will require custom post types?

    2) I would like to display links to specific categories and/or subcategories (selected, not necessarily all – the numbers are manageable number, so this does not need to happen automatically) on the homepage (right now, only way I see to do this is using a link like https://www.abc.com/?gd_placecategory=feature, although the url does not look very attractive; better would be something like https://www.abc.com/feature.html; is there any way to achieve this kind of a link structure?). I would like to display the number of entries in the category next to the link.

    3) Similarly, I would like to be able to display a clickable list of all subcategories of a given category.

    #428469

    Alex Rollin
    Moderator
    Post count: 27815

    In the settings for GD – Permalinks, if you choose to add category to URL, then each category will get an archive page, and it is possible to build a list of links to those pages with the Popular Categories widget, which will also include the count of the total posts assigned that category.

    #428569

    Ashok Malkarnekar
    Expired Member
    Post count: 12

    Thanks, what would be the format for the url of the archive pages? Is this the format: “https://www.abc.com/?gd_placecategory=feature”?

    –> is there any way to achieve this kind of a link structure “https://www.abc.com/feature.html”?

    To display only selected categories and in some cases subcategories, the Popular Categories widget does not seem to do the trick for me. Is there any other way to extract and display the number of entries per category/subcategory?

    #428587

    Alex Rollin
    Moderator
    Post count: 27815

    The category (CPT Category archive) page example: https://wpgeo.directory/supreme-directory/places/attractions/

    GDV1 works with WP Permalinks set to “Post Name”, so, *.*”.html” is not an option, generally.

    There aren’t any other settings to get a category count, only the widgets mentioned.

    #429296

    Ashok Malkarnekar
    Expired Member
    Post count: 12

    ok thanks, I’ve figured it out I think – in my case, it’s also displaying the archive page without the ‘supreme-directory’ part (goaholiday.info/places/attractions). Just wanted to confirm, for subcategories there are no archive pages?

    #429314

    Alex Rollin
    Moderator
    Post count: 27815

    There are archive pages for subcategories also.

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount