 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
August 24, 2015 at 9:54 pm #492512Hello, Is there a way to disable Posts from showing anywhere on the site and only accessible by direct link? August 25, 2015 at 12:22 pm #492850Hey w3developing! Please add following code to Functions.php file in Appearance > Editor function avia_exc_post($query) { if ($query->is_search) { $query->set('cat','5,9'); } return $query; } add_filter('pre_get_posts','avia_exc_post');5 and 9 here are category ID’s. You can give additional category to your posts that you would like to exclude from search and replace the ID’s in the code. Regards, 
 YigitAugust 28, 2015 at 12:47 am #494577Ok, thanks but this does not solve the problem. For example see the links in the private post. August 28, 2015 at 1:22 am #494583I found this code for the accordion: ‘post__not_in’ => (!empty($no_duplicates)) ? $avia_config[‘posts_on_current_page’] : array(), Is there a hook to replace this query or modify it to hide specific posts from the image accordion? September 2, 2015 at 9:51 pm #497382Hello? September 4, 2015 at 11:29 am #498246Hi! Try to use this: function avf_accordion_entries_query_mod($query, $params) { $query['category__not_in'] = array( 27, 18 ); return $query; } add_filter('avf_accordion_entries_query','avf_accordion_entries_query_mod');Again, you can add a unique category to the posts that you want to exclude. Use the id of that category to replace 27 and 18 in the example above. Best regards, 
 IsmaelSeptember 11, 2015 at 12:31 am #501358September 14, 2015 at 3:16 pm #502798Hi! You can try using the “avf_magazine_filter” on line 255 in the /enfold/config-templatebuilder/avia-shortcodes/magazine.php file for that. Are you trying to exclude these posts from all queries? Cheers! 
 ElliottSeptember 16, 2015 at 8:12 pm #504368Can you give me an example of using the magazine filter? September 17, 2015 at 4:12 am #504473
- 
		AuthorPosts
- You must be logged in to reply to this topic.
