Ads per Author With PHP Function
-
Hello Igor,
First of all, let me tell you that you have developed an amazing plugin. However, I got some issues around the following code:
<?php $author = get_post_field('post_author', get_the_ID()); if ($author == '3') { echo adinserter(1); } elseif ($author == '3') { echo adinserter(2); } elseif ($author == '3') { echo adinserter(3); } else {} ?>However, It seems like the code is not working for me… I tried to put this file in the functions.php and also single.php and the adds are still showing up doesn’t matter who author wrote the article.
It seems that I cannot find a way to actually place the php function. I am begging you, please, if there’s a way around this let me know as fast as you can.
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Ads per Author With PHP Function’ is closed to new replies.