Hi,
I want to show the course primary category
on the course popup that I was created on course block on the home page, how can I do this.
This reply has been marked as private.
@bamcse,
Can you please share the code how are you fetching the categories so I can assist you better by modifying your code
This reply has been marked as private.
Hi,
I'm still waiting for your reply .... : )
@bamcse,
You can use this function as well:
https://developer.wordpress.org/reference/functions/wp_get_post_categories/
This will retrieve the list of categories of that particular course(which will be in the form of array). Then you have to use array index, something like($terms[0]) to fetch a particular category of the course.
Nope, Not working
is there any suggestion else ?
@bamcse,
Are you able to fetch the post categories list using the above Function?
No, It's giving an empty array
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
Hi,
This outputs All Course Categories ( Primary and not Primary Categories )
Hi,
I'm still waiting ..... :)