[Support request] Embed YouTube videos in Category

Home Forums Support Embed YouTube videos in Category

  • This topic has 1 reply, 2 voices, and was last updated 11 months ago by Leo.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1044571
    oge

    Hi

    I will like to pull in Youtube videos through RSS feed (WP RSS Aggregator) and embed them in their respective categories.

    I got this response from WP RSS Aggregator:

    You will need to use the shortcode using the do_shortcode function in WordPress.

    Your approach is based on WP News Desk’s display, which involves simply displaying an archive of posts that belong to a certain category. This archive depends on the theme’s structure, and to modify it, you need WordPress coding knowledge.

    For example, the below function can be called in your theme’s category template:

    echo do_shortcode( ‘[wp-rss-aggregator template=”youtube-embeds” source=”15348″]’ );

    How can I make a code like that work for each category in Generate Press Premium?

    Thanks

    #1044581
    Leo
    Staff
    Customer Support

    Hi there,

    You should be able to use the Hooks Elements for something like that:
    https://docs.generatepress.com/article/hooks-element-overview/

    Let me know if this helps 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.