WP_Query to get posts in a specific tag or has post_format

Try Below Code :- $query = new WP_Query(array( ‘posts_per_page’ => 2, ‘tax_query’ => array( ‘relation’ => ‘OR’, array( ‘taxonomy’ => ‘post_format’, ‘field’ => ‘slug’, ‘terms’ => array( ‘post-format-link’ ) ), array( ‘taxonomy’ => ‘space’, ‘field’ => ‘term_id’, ‘terms’ => array(’16’), // 16 is the code for tag longform ‘operator’ => ‘IN’ ) ) ));

I lost the link to my posts in my menu bar

I’d check/adjust the Menu (under Appearance, Menu; also usually within Appearance, Customize). Create a menu if not already there. Then add a “Custom Link” to the menu. The URL is your home page, the Link Text is something like “Home”. Drag that menu item to the spot on the menu (the vertical list of all … Read more

Prevent WordPress from putting around specific element

Seems you have something plugin, that causes the problem, because WP doesnt put hidden anchors in the content. have you double checked the post-editor textarea (html/visual) to determine when that ..anchor.. appears? however, i dont recommend filtering, instead, save the CORRECT CONTENT in the back-end, instead of filtering the incorrect content on front-end. use something … Read more