Created
February 20, 2020 10:55
-
-
Save ledovej/65835b6097a9637a824dbfc08a79a058 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'elementor_pro/posts/query/relational-posts', function ( $query ) { $postid = get_the_ID(); $ids = get_post_meta($postid, 'related_featured', true); if ( $ids ) { $query->set( 'post__in', $ids ); } } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment