-
swilson7Participant
Just switched to Cover WP with a few earlier-entered posts assigned to categories of my own devising. Per instruction, added the category “Featured” and a post assigned to that category. It filled into the “Featured” section correctly, but it also filled in under “Headline”.
Another post, assigned to a category that would be unknown to your theme, filled in three times under “Popular”.
Every post other than the one assigned to Featured was then listed under “Latest” (which duplicated the “Popular” item yet again).
It’s all rather puzzling. My objective, given the magazine format, is to control the positioning of *every* article.Daniel TaraKeymasterThere’s a bug in the popular section when displaying the most commented posts. It will get fixed in the next revision, meanwhile you can try ordering the posts by views under Appearance > Theme Options
valentine21463ParticipantI’m having the same problem with the popular category. You say it’s a bug and it’s being updated. Do you know when it will be updated and how will I know when it has? Will I have to download the updated version?
I really like this theme and I don’t want to change it so I hope it’s updated soon π
Thanks for your help,
Melanie k.
Daniel TaraKeymasterI’m planning a major update, with a complete code revision, features added, features removed, compatibility with WP 3.1. I honestly don’t know when it will be released, but until then you can fix this problem by choosing to arrange the popular posts by views and not comments.
ChattahoocheeNowParticipantHi Daniel,
I have my Popular set to Viewed but the ones showing have not changed in a loooooooooong time. I have now had more than 90 views on the top three posts, but none of them show up as Popular. Any ideas?
Daniel TaraKeymasterWhat’s the number of views you have on the popular ones. Try refreshing an article several times and see it it changes position.
ChattahoocheeNowParticipantViews in May –
Storm damage update: 195 views.
Fairies of Anna Ruby Falls: 92 views.
Freeway would cut through NW Georgia: 83 views.Have refreshed. Nothing changes.
The articles stuck as “Popular” – May stats:
Nukes in Dawson Forest, 60 views.
Trouts Unlimited, no record of any views in Google Analytics during the month of May.
Users to FS: 9 views. (no i didn’t drop a digit, it’s nine views)It seems as though the Popular tabulation is stuck in the month of March.
To be honest, I’d be just as happy to change this to a fixed category.
But I see no way to do that – only the “Featured” category can be changed in the theme setup.
Is there a way to eliminate Popular and just make it a fixed category?
Thanks very much for any help. I would really like to move this because users are asking….
Daniel TaraKeymasterYou can clone the featured category section and assign a different category to it, but that’s not a really simple task and you need some basic coding knowledge to accomplish it.
ChattahoocheeNowParticipantOK…. well, sadly I don’t have the coding knowledge….. dependent on you and others for help.
Any other ideas about why this might be stuck on March stats for Popular?
ChattahoocheeNowParticipantJust checked for March-May inclusive; “Nukes” should be second-most popular. Only 3 views for Trout Unltd in all this time!
ChattahoocheeNowParticipantI just did a comparison in PSPad of my current home.php to the original home.php that came with the theme, in case the problem was there.
The only difference I see (other than switching names of section headings, and adding the necessary coding for Featured Content Gallery) is this, which falls after line 109 of the original:
<p class=”postmeta” style=”margin-bottom:2px;”><?php the_time(__(‘F jS, Y’,’cover-wp’)); ?> | <?php comments_popup_link(__(‘Add a Comment’,’cover-wp’), __(‘1 Comment’,’cover-wp’), __(‘% Comments’,’cover-wp’)); ?></p>Could that possibly make any difference?
Daniel TaraKeymasterNo, the post views are calculated by the function [code]add_post_meta()[/code] in single.php. The [code]display_popular()[/code] function in functions.php creates the block of popular posts.
ChattahoocheeNowParticipantThank you!
In functions.php I have an extra line after line 243,
$content = $topfive->post_excerpt;Would THAT be causing problem? Shall I just delete it?
Or is that what we added before – to solve the problem of the captions showing?
ChattahoocheeNowParticipantOK, took out that line. Made no difference.
Still the same three tired old unpopular posts showing up as Popular.
Where is the “top five” views defined?
Is it this?
if ($order == ‘views’) :
$metakey = “AND meta_key = ‘_views'”;
$orderby = “$wpdb->postmeta.meta_value+0”;If so, is there some way to check whether there is a problem in the metakey?
FYI – I did check single.php, it is unchanged from the original….
add_post_meta(get_the_ID(), ‘_views’, $post_views+1, true);Daniel TaraKeymastertry calling [code]delete_post_meta(get_the_ID(), ‘_views’);[/code] once for every post. This will reset the counter.
You must be logged in to reply to this topic.