Adding new post filter in td_config.php by new array

Posted in: Newspaper
Post count: 1

Hello,
I have added the code below in td_config.php inside the function “get_map_filter_array ($group = ‘Filter’)” for a new filter “post_format”.
array(
"param_name" => "posts_format",
"type" => "textfield",
"value" => '',
"heading" => 'Post Format Filter:',
"description" => "Filter the post format you want to display: type 'video' or 'gallery'",
"holder" => "div",
"class" => "",
'group' => $group
)

This code work, but I use the child theme, how can I add this code trought function.php? If I overwrite td_config.php in my child theme not work, isn’t read.

Thank you

Post count: 22421

Hello,

Unfortunately not all files will work from the child theme. there will be some files like the td-config which will only work from the main theme
For a complete child thee files guide, please use this link: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Sorry for the inconvenience.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.