course primary categories

Home Forums Legacy Support Support queries How-to & Troubleshooting course primary categories

Viewing 15 posts - 1 through 15 (of 49 total)
  • Author
    Posts
  • #158775
    bamcse
    Spectator
    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.
    #158844
    Diana
    Participant
    #158931
    bamcse
    Spectator
    This reply has been marked as private.
    #159016
    Diana
    Participant
    @bamcse, Can you please share the code how are you fetching the categories so I can assist you better by modifying your code
    #159102
    bamcse
    Spectator
    This reply has been marked as private.
    #159273
    bamcse
    Spectator
    Hi, I'm still waiting for your reply .... : )
    #159352
    Diana
    Participant
    @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.  
    #159384
    bamcse
    Spectator
    Nope, Not working is there any suggestion else ?
    #163782
    Diana
    Participant
    @bamcse, Are you able to fetch the post categories list using the above Function?
    #163908
    bamcse
    Spectator
    No, It's giving an empty array
    #164029
    Diana
    Participant
    This reply has been marked as private.
    #164105
    bamcse
    Spectator
    This reply has been marked as private.
    #164221
    Diana
    Participant
    This reply has been marked as private.
    #164294
    bamcse
    Spectator
    Hi, This outputs All Course Categories ( Primary and not Primary Categories )  
    #164499
    bamcse
    Spectator
    Hi, I'm still waiting ..... :)
Viewing 15 posts - 1 through 15 (of 49 total)
  • The topic ‘course primary categories’ is closed to new replies.