how to reference "url link" to a "category"?

Posted in: Newspaper
Post count: 5

hi there

i have and image, and text and different element types , i want to create a link url to a wordpress category, how can i reference to a category on the url/link field on each element type?

on wordpress there is a category function to get the relative url
https://developer.wordpress.org/reference/functions/get_category_link/

i need something like that for me

thank you in advance for your help

Post count: 21065

Hello @prensalaregion !

In order to avoid misunderstandings, please provide more information(screenshots/video) about what exactly you need to achieve or what is the issue there and your website link.

A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here.

Thank you!

Post count: 5

thank you for your fast reply

i attach an image with the fields for two elements
https://drive.google.com/file/d/1802s40jrbjGwbpgl1nwAmRQI9qfYoUNS/view?usp=share_link

as you can see on the first image, i tried to use the get_category_link(category_id) for the title URL, but this not work.

i can use the full url to the category, but this url will stop working if i change the category slug or permalink settings

i need to know if there is the same feature for all elements

best regards

Post count: 21065

Hello @prensalaregion !

Unfortunately, you can add only the link of that category.

Thank you!

Post count: 5

so sad to know that, i think it would be a great idea to add this feature for a next release

thank you for your help

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.