jenseo
Forum Replies Created
-
Ok, so what should be added to key and value when I have a custom field called “_point” and different numbers stored on each post?
Hey!
I haven’t added meta key because there isn’t a fixed number, but maybe I have missunderstood this parameter? Should i add something like meta_key=number or something like that?Extra info: Posts can have the same amount of votes, but I guess they should be ordered by date then?
Hi,
thanks for the quick reply!It is high traffic, but I have checked if the votes have changed, which they have not. They duplicate on the first ajax request yes. The preloaded posts order correctly, but not the remaining ones.
The posts in the list are published with one minute in between, just to make sure they not have the exact same time.
In the current query, the _point is always set, either with 0 or a number of votes.
The query I mentioned have been used when I have had modified pre_get_posts on posts with a custom field that’s only set on some posts. It looks like this:
add_filter( 'posts_where', 'wpq_posts_where_archive', PHP_INT_MAX ); $query->set( 'post_type', array( 'open_list', 'post' ) ); $query->set( 'meta_query', array( 'relation' => 'OR', array( 'key' => '_views_today', 'compare' => 'NOT EXISTS', ), array( 'key' => '_views_today', 'compare' => 'EXISTS', ), )); $query->set('orderby', array('meta_value_num' => 'DESC', 'date' => 'DESC'));
Could there be something wrong with how I have used the shortcode? To be honest, I haven’t fully been able to wrap my head around the query part of it.
A few possible issues I can think of:
- Is it ok to have a certain amount of preloaded posts, and another amount of posts per page? This is what I do in my case.
- Do I need to set an offset of the same amount of posts as the preloaded ones?
- Is it ok to use it without a meta_value as in my case? Since the values are all different?
Thanks!
// Jens.
Thanks for the great news, Jack! I look forward to it!
I really enjoy using the plugin, and thanks for the quick support!
// Jens.
Forum: Plugins
In reply to: [MC4WP: Mailchimp User Sync] Will unsubscribed users be autosubscribed again?+1 on this. Really important that a user can unsubscribe from the list but remain a member on the site.
Forum: Plugins
In reply to: [Yoast SEO] Exclude category from breadcrumbs?Awesome, I’ll give it a spin! Thanks a lot!
Forum: Plugins
In reply to: [Yoast SEO] Exclude category from breadcrumbs?Thanks jrf, looks to be what I need!
I’m not really sure how to solve the following scenario though:
If I base my filter on the example in the thread you linked, I’m guessing that it will remove the category I specify, but I would also like it to choose the other category from the post.
Any suggestion how I can apply this in a filter?
Thanks!
// Jens.
Forum: Plugins
In reply to: [WordPress Popular Posts] An error about validation on w3 validator+1, I’m also having this problem!
Forum: Plugins
In reply to: [W3 Total Cache] Problem with gzip of minified css and js filesOk, some more info:
The html content of the page seems to be gziped, but the minified files are not. So, it seems compression works, just not for minified files. What can I do to enable this?
I’m also wondering if this plugin is still maintained? Seems to be very hard to get an answer here?
// Jens.
I saw in a another thread that PRO users like myself could send you an email too, if you prefer that, let me know!
// Jens.
Ok, now I just realized something else:
The contact form 7 doesn’t work as intended, I’ve tried all solutions I could find here, but without luck.
One thing puzzles me, and that is this quote from the plugins FAQ page:
Can I add a checkbox to third-party forms?
Yes. Go to MailChimp for WP > Checkboxes and tick the “show checkbox at other forms (manual)” checkbox. Then, include a checkbox with name attribute mc4wp-try-subscribe and value 1 in your form.I cant find that checkbox, could this have something to do with it?
// Jens.
No problem, glad I could help!
Take care!
// Jens.Just out of curiosity, what happens if you upload a new picture? It might be that you need to re-upload your pictures, since this only will apply to new pictures, not the ones already uploaded.
There’s a plugin that does this automatically, so you don’t need to manually upload all pictures again, but first, try it by uploading a new picture to one of your popular posts.
https://www.ads-software.com/extend/plugins/regenerate-thumbnails/
// Jens.
Hey Kate,
you should be able to add a custom sized thumbnail to your functions.php file, and then specify it in the plugin.Add this to your functions.php file:
add_image_size( 'popular-thumbnail', 108, 108, true );
And then change this in your plugin file:
$thumb = "<a href=\"".get_permalink($wppost->ID)."\" title=\"". $title_attr ."\">" . get_the_post_thumbnail($wppost->ID, 'thumbnail', array('class' => 'wpp-thumbnail', 'alt' => $title_attr, 'title' => $title_attr) ) ."</a>";
To this:
$thumb = "<a href=\"".get_permalink($wppost->ID)."\" title=\"". $title_attr ."\">" . get_the_post_thumbnail($wppost->ID, 'popular-thumbnail', array('class' => 'wpp-thumbnail', 'alt' => $title_attr, 'title' => $title_attr) ) ."</a>";