Place category schema – are these documented somewhere?
This topic contains 7 replies, has 2 voices, and was last updated by Alex Rollin 8 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Schema Types, shortcodes
-
AuthorPosts
-
April 30, 2018 at 7:40 am #428437
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
April 30, 2018 at 7:44 am #428438Hello,
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
April 30, 2018 at 8:21 am #428441Hi,
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.
April 30, 2018 at 10:32 am #428469In 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.
May 1, 2018 at 2:49 am #428569Thanks, 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?
May 1, 2018 at 7:41 am #428587The 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.
May 6, 2018 at 3:01 pm #429296ok 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?
May 6, 2018 at 6:35 pm #429314There are archive pages for subcategories also.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket