WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Media Project
getting videos to show in loop/rss/recent psots (1 post)

  1. jsinfonico
    Member
    Posted 1 year ago #

    Hello,

    I know there's already a related post on this, but I'm trying to get the video posts from gmp to show in the loop, and ultimately the rss feed and recent posts category (alongside the standard posts).

    I've tried several codes, but am somewhat of a novice. This is my most recent code I posted into functions, can you tell me if something is off or if this is even the right route to be taking?:

    add_filter('pre_get_posts',
    	create_function('$query',
    		'if ($query->is_feed)
    			$query->set("post_type",array("post", "video"));
    		return $query;'
    	)
    );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Thanks for your time and plugin.

    http://wordpress.org/plugins/genesis-media-project/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic