totalseomarketing
Forum Replies Created
-
Hello Farid, i just bought Ultimate Post Kit PRO and i can tell it’s AWESOME! I believe that with a little tweaks and new implementations could be a game changer in elementor’s world.
I am developing a blog site AND i need to filter the post by Author, i am using the plugin Advanced Post Queries that allows me to select dynamic user with the regular boring elementor post widget (it works like a charm but the design is so limited). SO i would like to use the Hazel Grid WITH the same properties as the Advanced Post Queries (that unfortunately are not working together) SO i am trying to use the CUSTOM QUERY ID option to make the same purpose BUT i just can’t make it work, can you please take a look to the code and tell me what am i doing wrong? This is the code snippet i’m using:
add_action( ‘elementor/query/custom_author’, function( $query ) {
$query->set( ‘post_type’, [ ‘author’ ] );} );
// ‘custom_author’ is used in the CSS ID in the advanced tab Ultimate Post Kit advanced tab widget.
ALSO i am using this another code snippet to filter the post by “pending” status, i am using the Hazel and works GREAT.
add_action( ‘elementor/query/custom_pending’, function( $query ) {
// post status ‘future’ and ‘draft’.
// Refer to WP_Query documentation in WP codex for values list.
$query->set( ‘post_status’, [ ‘pending’] );
} );I really appreciate all your help.
Best Regards.
Ernest