campanilla_renee
Forum Replies Created
-
Hi @markilj,
Thank you very much for your response and assistance in addressing the issue I encountered.
Upon further exploration, I found that modifying the function to utilize
bbp_get_reply_idinstead ofbbp_get_topic_idsuccessfully addressed the issue specific to BBPress replies. This adjustment ensured that the Internal Link Juicer plugin functions as intended, linking the content within replies accurately since the topic content and replies are on the same page in my case.Here’s the code:
function apply_ilj_get_the_content_filter($content_id = 0, $type = 'topic') { $content_id = ('topic' === $type) ? bbp_get_topic_id($content_id) : bbp_get_reply_id($content_id); if (post_password_required($content_id)) { return get_the_password_form(); } $content = get_post_field('post_content', $content_id); return apply_filters('ilj_get_the_content', $content); } function apply_ilj_get_the_content_filter_topics($topic_id = 0) { return apply_ilj_get_the_content_filter($topic_id, 'topic'); } function apply_ilj_get_the_content_filter_replies($reply_id = 0) { return apply_ilj_get_the_content_filter($reply_id, 'reply'); } add_filter('bbp_get_topic_content', 'apply_ilj_get_the_content_filter_topics', 10, 1); add_filter('bbp_get_reply_content', 'apply_ilj_get_the_content_filter_replies', 10, 1);Thank you once again for your invaluable help!
Hi @ahmedkaludi!
Thanks for your response.
I’ve found out that this error was caused by how docker was setup in my machine. Your plugin works well when I tried it in XAMPP.
Thanks again!
- This reply was modified 8 years, 6 months ago by campanilla_renee.
Forum: Reviews
In reply to: [AMP for WP - Accelerated Mobile Pages] Impossible to configureForum: Reviews
In reply to: [AMP for WP - Accelerated Mobile Pages] Impossible to configureHi @marqas,
I am currently using: Version 0.9.66.1.
I just turned off the adblocker. It still throws errors such as GET ../wp-content/plugins/accelerated-mobile-pages/includes/options/redux-core/assets/css/redux-admin.css?ver=3.6.2 net::ERR_ABORTEDIt seems that the domains are repeated when generating the link. Like: http://mydomain.lan/wp/www/sites/mydomain.lan/wp-content/plugins/accelerated-mobile-pages/includes/options/extensions/vendor_support/vendor_support/vendor/select2/select2.css?ver=3.5.2
This should be the correct link though: http://mydomain.lan/wp-content/plugins/accelerated-mobile-pages/includes/options/extensions/vendor_support/vendor_support/vendor/select2/select2.css?ver=3.5.2
I’ve got 39 errors for now
- This reply was modified 8 years, 6 months ago by campanilla_renee. Reason: forgot to include error
- This reply was modified 8 years, 6 months ago by campanilla_renee. Reason: added more info
- This reply was modified 8 years, 6 months ago by campanilla_renee. Reason: added more info
- This reply was modified 8 years, 6 months ago by campanilla_renee.
Forum: Reviews
In reply to: [AMP for WP - Accelerated Mobile Pages] Impossible to configureHi there!
I get console errors too. Like ‘Uncaught TypeError: jQuery(…).typeWatch is not a function’ and a lot of ‘Failed to load resource: the server responded with a status of 404 (Not Found)’ errors. I currently have 47 console errors after activating the plugin in WordPress and going to AMPforWP Options.
Hoping for your response @ampforwp!