Archived topic
Tags not working in custom posts - Pods Framework & GeneratePress
1 reply · Started by Teuvo on December 9, 2017
I'm using Pods Framework when creating custom posts. In custom posts I have enabled built-in WP tags (post_tag). They are functioning ok when using TwentySeventeen Theme, tags are listed in tag clouds widget and links return list of custom posts as expected.
I have PHP in functions.php
// Tags of any post type
function any_posttype_on_tag($request)
{
if ( isset($request['tag']) )
{
$request['post_type'] = 'any';
}
return $request;
}
add_filter('request', 'any_posttype_on_tag');
But when I change to GeneratePress Theme, links no longer return those custom posts.
Any idea how to proceed in getting custom post tags also function in GeneratePress?
GP 2.0 , Premium 1.5.6, Child Theme
Rgds Teuvo
EDIT
I resolved it myself. The fault was Polylang Add-on I had installed. When I removed it, post_tag started to work back again. Sorry for the trouble, too many changes on the site at the same time ;)
Glad you figured out :)