-
AuthorPosts
-
March 23, 2015 at 2:04 pm #416369
Hi guys,
In feb you recommended I use a Functionality plugin, which I installed and entered the following code:
add_filter(‘avia_post_nav_settings’,’avia_same_category_filter’, 10, 1);
function avia_same_category_filter($settings)
{
$settings[‘same_category’] = true;
return $settings;
}This doesn’t seem to be working. Please can you have a look to make sure the code is correct?
Thanks,
Krissie
March 24, 2015 at 7:28 am #416923Hi Krissie!
Have you updated since you added the code and where did you add the code? Make sure you add the code to a child theme to not lose your customisations on updates.
Regards,
RikardMarch 25, 2015 at 10:08 pm #418181Hi Rikard,
I was told by another guy that using the functions plugin would be fine rather than a child theme (which is not an option for me).
It doesn’t seem to be working though.March 27, 2015 at 2:50 am #419028Hi!
Please add the code to Functions.php file of the theme in Appearance > Editor and check if that helps.
Cheers!
YigitMarch 31, 2015 at 4:05 pm #421258Hey Yigit,
Hopefully you guys will add something into the template for stuff like this.
Which functions? The functions-enfold or theme functions?
Thanks, :) x
March 31, 2015 at 4:12 pm #421271April 8, 2015 at 4:29 pm #425405Hi Yigit,
But where do I actually put the code within the functions.php?
It doesn’t work when I do it.Is this code right?
add_filter(‘avia_post_nav_settings’,’avia_same_category_filter’, 10, 1);
function avia_same_category_filter($settings)
{
$settings[‘same_category’] = true;
return $settings;
}April 9, 2015 at 6:35 am #425714 -
AuthorPosts
- You must be logged in to reply to this topic.
