WebberZone
Forum Replies Created
-
Forum: Plugins
In reply to: [Contextual Related Posts] Wrapping the entire crp_inner into permalinkNo problem. Most of it is straight forward.
The main part you’d want to change is the following to generate the output that you’re looking for
echo '<a href="' . get_permalink( get_the_ID() ) . '">'; the_title(); echo '</a>';Forum: Plugins
In reply to: [Contextual Related Posts] How are the related posts found?Posts are always sorted as per relevance.
You could potentially try this function in your theme’s functions.php
function filter_crp_orderby( $orderby ) { return "rand()"; } add_filter( 'crp_posts_orderby', 'filter_crp_orderby' );You’re welcome.
That’s true. Unfortunately, the only option here is to temporarily disable Sucuri or ask them to check the logs to see if their blocking the script.
Another point worth trying is this alternate script in your themes functions.php
https://gist.github.com/ajaydsouza/e4637ebb9df9158fc5a9
Also whitelist the script in Sucuri
It might actually be the case that Sucuri is blocking any of the spam entries which were previously filtering through.
Forum: Plugins
In reply to: [Contextual Related Posts] Wrapping the entire crp_inner into permalinkMuch clearer. There isn’t an easy way to relink or recreate the entire output.
However, a good option might be to use a custom code using the API.
https://gist.github.com/ajaydsouza/c8defd4b46e53240e376#file-tptn-api-examples-php
[tptn_list daily="1" daily_range="0" hour_range="1"]If you want the daily ones, please use
[tptn_list daily="1"]Forum: Plugins
In reply to: [Contextual Related Posts] Wrapping the entire crp_inner into permalinkIt’s still not clear to me. I don’t have this code within the plugin itself.
How are you creating this?
Hi, the code above got completely mixed up in formatting.
Do you mind re-posting it enclosed within the code button in the forum, using a gist?
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Only Shows Top Posts and Not DailyWhat are you using to see the Daily popular posts?
If you’re using your own caching plugin, you shouldn’t need to worry about Top 10’s cache. It’s just an added feature that fully caches the output of the plugin making it more efficient. It’s still not as full fledged and bug free as I would hope!
What’s your site URL?
The plugin is fully customizable with CSS, but it always needs a bit of a trial and error to get this to work.
Check out the default CSS: https://github.com/WebberZone/top-10/blob/master/css/default-style.css
For your related posts widget you might wnat to use this to style the recent posts. It doesn’t really make much sense to have a Recent posts within the plugin.
Forum: Plugins
In reply to: [Contextual Related Posts] Hide thubnails on mobile devices@media only screen and (max-device-width: 480px) { .crp_related { display:none } }Forum: Plugins
In reply to: [Contextual Related Posts] Manually added posts not workingDoes it work with any other theme?
Do you have the plugin cache enabled? What happens if you disable it?