Pro Theme Design Forum » Mimbo Pro » Technical Help
Problem with Related Post
|
|
Hi, Do you know the reason for this strange behaviour? I tried to uninstall all plugins except Related Post but anything happens... Could you help me? |
|
|
And another question: is it possible change the bm_categoryPosts function? I don't want to show a particular category. I know the ID of that category but I don't understand the way I could change that function. |
|
|
I have no idea what the answer to your first question is - i've not even heard of the plugin :( Regarding the second problem, yes you can add categories to ignore :) The function bm_categoryPosts can be found in theme_functions.php In that function I would create an array of ids to ignore (to be flexible if you want to add more in the future) $ignoreList = array(1,2,3); and then in the foreach loop that goes through all the categories I would check if the current category is in the ignoreList array using the PHP in_array function
|
|
|
First of all, thank you Ben foryour quick reply. I don't know exactly where to put the code. I tried to put directly after the line
but I obtain only an error. Wordpress doesn't like the curly brackets { Where I do wrong? |
|
|
You've got the correct location. You need to add the if(!in_array part directly after the foreach and then make sure you close the curly brackets at the end of the foreach Also I've just noticed that I missed a closing bracket at the end of the if statement as well. It should read like this...
... I guess that's what I get for writing code without actually testing it :) |
Reply
You must log in to post.
not a support question