Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #648227

    Hello Enfold Team!

    We’d like to see if there is a way to set a magazine feed to pull in posts by a specific author rather than tags or portfolio categories. We understand that is possible to do this through tags, but we have used these heavily in other places throughout the site and don’t want to add another 30+ tags to the list. It would also save us significant time when we migrate content over from our old blog to this new site.

    Is it possible?

    You guys rule, thanks!
    Mike

    #649465

    Try adding this at the very end of your theme / child theme functions.php file:

    add_filter('avf_magazine_entries_query', 'avf_magazine_entries_custom_query');
    
    function avf_magazine_entries_custom_query ( $query ) {
    $query['author'] = 1;
    return $query;
    }

    Where 1 is the author ID.

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