Insert the category name in the permalink listing

How to change the headers of the address so that google starts to position the site well and the Ad has a dynamic category prefix, for example:

the category page is: board/trade category

and the ad is: board/trade category/advertisement title.

Dynamic notations in wordpress in the section: Direct link settings

do not save, e.g.:

“board/%category%”

“board/{{category}}/{{listing}}”

how?

1 Like

Hi,

If you are referring to permalinks, you can do it using this documentation: How to customize URL structure - HivePress Help Center. However, if you mean advanced link customization, then this is a WordPress-level customization and will require custom code.

Unfortunately, this is not on my topic. Right now I’m just using rigid links, for e.g. Announcement:

“board/trade category/advertisement title”

and what I want is a dynamic link of the category where the ad is located, e.g.

“board/transportation/transportation/advertisement”

or

“board/warehouse/goods store ad”

we need a dynamic tag link to the category.

Piotr

Hi,

Thank you for the details. If you mean to insert the category name in the permalink listing, it is possible, but please note that this is a WP-level setting that will require customization code, as the default permalink settings do not allow you to change this. If you are familiar with the coding, you can see more details in this topic php - How to add custom taxonomy in custom post type permalink? - Stack Overflow, post type hp_listing, taxonomy hp_listing_category.

​I hope this is helpful to you

Were is code:

'rewrite' => array(
    'slug' => '',
    'with_front' => true,
),


?

Hi,

Unfortunately, we can’t help with WP-level customization, but if you want to overwrite the post types and taxonomy parameters and you are familiar with coding or have a developer, then use the hooks hivepress/v1/post_types and hivepress/v1/taxonomies, where listing post type hp_listing, taxonomy hp_listing_category

I hope it helps

say about address?
wp-content\plugins\hivepress\includes\configs

Hi,

Post types and taxonomy configurations are stored here:

However, please note that all changes made directly in the code will be automatically deleted after our update, so we recommend adding a PHP snippet using the hooks we provided above.

super