newgeek
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Iconic One] Mobile is breaking – I don't know the reasonIt looks to be something related to the “Still need more speed?” part.
I disable all options there. Mobile version went to normal, but page speed rank (for mobile) decrease from 71/100 to 52/100
Complicated issue. I would like to stay near 70 at least.
EDIT:
“Still need more speed?”Checked “Load CSS asynchronously” and “Disable all above CSS options on mobile devices” and mobile version broke again.
This time I got a 66/100 on mobile test (if I turn the other two option on I’ll probably go back to my 71/100).So right not it’s page speed x visitor’s experience. Any ideas guys?
Forum: Themes and Templates
In reply to: [Iconic One] Mobile is breaking – I don't know the reasonOkay guys.
Looks like “Speed Booster Pack” IS the problem. The thing is, my website without this plugins gets a Page Speed (google) of 58/100 on desktop.
With it on I’m getting a 81/100 – So turning it off is a “no no”
Any idea on what is causing it?
PLUGINS OPTION (all checked) :
Main plugin options:Move scripts to the footer
Load JS from Google Libraries
Defer parsing of javascript files
Remove query strings
Lazy load images to improve speed
Removes extra Font Awesome styles
Remove junk header tags:
Remove RSD Link
Remove WordPress Shortlink
Remove Adjacent Posts Links
Remove Windows Manifest
Remove the WordPress Version
Remove all rss feed links
Forum: Hacks
In reply to: Popular Post by Month query not working properlyThanks!
Forum: Hacks
In reply to: Popular Post by Month query not working properlyI just want to Thank you so much! It worked and I’m pretty sure everything is fine now… All thanks to you =)
I’m really happy because this problem was bugging me for quite some time now… Hehe
Thanks again man!
Forum: Hacks
In reply to: Popular Post by Month query not working properlyNo, it’s probably my fault since English is not my mother language.
So Sorry!What I want is a place in the sidebar where I can show my visitors the Most Viewed Pages of the Current Month.
Since we’re in April, I want to show my visitors the most visited/viewed posts of the current month, April. I’ve no need to sort popular posts by month, only to show the most viewed posts of the current month.
Of course I don’t want to change the month manually everysingle month so I tried using the $month = date(‘m’); thing.
I already tried your tip of changing it to date(‘n’); but it didn’t work. Sadly. It didn’t mess anything, but there was no change.
And I had a post receiving a lot of views recently (an April post – 9k views ) and it went for the “second position” in the most viewed posts (so I don’t think it’s stuck in March). I think my code is just showing the “Most Viewed of All Time” when what I really want is the “Most Viewed of the Current Month“.
By the way, thanks for taking your time and trying to help. I really appreciate this kind of thing, it’s not everyone who has this kinda of behavior.
Thanks!
Forum: Hacks
In reply to: Popular Post by Month query not working properlySo no easy way around it …. I saw some people using this:
$month = date('m'); $year = date('Y'); query_posts('post_type=post&posts_per_page=10&orderby=comment_count&order=DESC&year=' . $year . '&monthnum=' . $month); while (have_posts()): the_post();
Why does it work for this kinda of Popular post, but not for mine…?
Anyways, any Tutorial/Guide I could follow to make mine work… Otherwise I’m giving up and just using the “popular post of all time”.
Thanks in advance!
Forum: Fixing WordPress
In reply to: [Help] Category Recent Posts PaginationI found my own solution for anyone interested I’m using this:
<?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; query_posts('cat=6&paged='.$paged.'&post_per_page='.get_option('posts_per_page')); ?> <?php while (have_posts()) : the_post(); ?>
Then the call for thumbnail, title, etc…The endwhile
<? endwhile ?>
And this to get the pagination
<?php global $wp_query; $big = 999999999; // need an unlikely integer echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages ) ); ?>