Query post with content only

If I understand your question fully, I believe this is what you’re after. As far as I know… There is no WP_Query that you can use to accomplish this. However, you can use the $wpdb and make a custom query. global $wpdb; $q = ” SELECT * from {$wpdb->posts} p RIGHT JOIN {$wpdb->postmeta} pm ON … Read more

Skip latest 3 posts from loop

You can use the pre_get_posts action to alter your main query. The codex has a note that using the action might break pagination. Have a look at this old question and answer, Changing Posts Per Page and offset with pre_get_posts It has code examples for using the pre_get_posts and how to handle the pagination problem … Read more

adding or removing endforeach; throws error!

If you pasted your code directly, The second curly bracket here <?php if($k==0) { ?> active <?php { ?> should be a closing one, like this: <?php if($k==0) { ?> active <?php } ?> There is also a stray slash </a>/</li> – should be – </a></li> – but that shouldn’t cause any PHP errors.

How to display sticky post always at the top (before regular post) in wordpress?

I think you may need to add the feat_yes as a meta_key $temp_args = [ ‘post_type’ => array(‘current-channel’, ‘post’, ‘current-episodes’), ‘post_status’ => ‘publish’, ‘meta_key’ => ‘feat_yes’, ‘orderby’ => array( ‘meta_value_num’ => ‘ASC’, /* or ‘meta_value’ */ ‘post_type’ => ‘ASC’, ‘modified’ => ‘DESC’, ‘date’ => ‘DESC’), ‘posts_per_page’ => $data->{“no_articles_” . ICL_LANGUAGE_CODE}, ‘tax_query’ => [ [ ‘taxonomy’ … Read more