sophia21
Forum Replies Created
-
Hey Igor,
Thanks for taking the time to figure out the problem (the issue is with the Pagination for Posts plugin and not with Ad Inserter) and fixing it.
You went above and beyond!
Much appreciated.
Best,
SophiaDone! Just sent you an email via your contact form.
Thanks!
Sophia
Well, I asked about this issue in the Pagination for Posts plugin support forum. While the plugin author has not responded so far, I did receive a reply from the developer of the Advanced Ads plugin.
Here is what he says:
*************
It happens often that shortcodes are not enabled for custom input fields in themes and plugins, so I hope it is ok that I leave this link to a post I wrote to enable shortcodes in category descriptions.https://webgilde.com/en/shortcode-not-working-category-description/
Maybe this helps the guys from Pagination For Posts to find a quick fix for you.
*************I tried implementing the solution mentioned in the page linked to above, i.e., including the following line in the functions.php file of the theme:
add_filter( ‘term_description’, ‘do_shortcode’ );Unfortunately, that did not solve the problem either.
If you have any suggestions, I’d be happy to try them out.
Thanks!
Sophia
Forum: Plugins
In reply to: [Pagination For Posts] Process WP Shortcodes?Hi Thomas,
Thank you for your inputs.
As mentioned on the page you linked to above, I added this line to the functions.php file on my test blog:
add_filter( ‘term_description’, ‘do_shortcode’ );It seems to make no difference whatsoever – the ads don’t show up when using pagination. The shortcodes do.
Of course, this could be because I have no idea about coding and may have added the line at an inappropriate place. I added it somewhere in the middle of the file like so:
(Lots of code above this line)
wp_enqueue_script( ‘comment-reply’ );
}
}
add_action( ‘wp_enqueue_scripts’, ‘write_scripts’ );add_filter( ‘term_description’, ‘do_shortcode’ );
/**
* Add customizer style to the header.
*/
(Lots of code below this line too)I’m not using the Yoast plugin on my test blog, so that shouldn’t be the issue.
Anyhow, thank you once again for your inputs. I’m off to find some other solution for pagination and ad displays.
Sophia
I’m trying to find out from the authors of that plugin.
When I have a response, I’ll post here.
In the meanwhile, are you aware of any other pagination plugin that works well with Ad Inserter?
Thanks for your responses!
Sophia
Hi Igor,
Thank you for your prompt response!
I changed the Ad Inserter plugin priority to 10 and saved the settings.
However, the problem still persists:
http://clarityflame.com/test/on-artificial-intelligence-and-wordpress-programming/Incidentally, on my main blog, I had tried using another ad plugin called Advanced Ads. I ran into the same problem — only shortcodes show up and not ads, when using pagination.
I’d prefer to use your plugin, though.
Thanks for your help!
Sophia