Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)
  • Thread Starter Matías

    (@m4tl4s)

    Thank you! I checked again and WPP isn’t the one causing performances issues so I better won’t use “accuracy”.

    Y una última pregunta para no abrir otro tema… estoy algo confundido con la opción “Límite del registro”. Si decido guardar datos por 30 días por ejemplo, se limpiará solo la tabla “popularpostssummary”? Y la tabla “popularpostsdata” quedará intacta?

    Thread Starter Matías

    (@m4tl4s)

    That didn’t answer my question from earlier. You’re declaring a variable that you’re not using in your code. How do you expect it to do anything if you don’t use it at all?

    Sorry but I’ll respond this in spanish to clearly say what I want to say… Usé eso únicamente para probar sin saber realmente si funcionaría… Ahora sé qué falta algo en el código para que funcione y es lo que no sé qué es. ?Qué falta?

    Lo que quiero es simplemente mostrar los posts más populares (igual que hasta ahora) tomando la data de WPP directamente y sin guardar la data de los views de cada período en post meta una y otra vez, porque provoca una sobrecarga en mi hosting, o algo así me dijo mi proveedor.

    Before, I used another plugin and I could mix the code. Look especially since “orderby”:

    <?php global $post; $mvp_related_num = get_option('mvp_related_num'); $pop_days = esc_html(get_option('mvp_pop_days')); $popular_days_ago = "$pop_days days ago"; $category = get_the_category(); $current_cat = $category[0]->cat_ID; $recent = new WP_Query(array('cat' => $current_cat, 'posts_per_page' => $mvp_related_num, 'ignore_sticky_posts'=> 1, 'post__not_in' => array( $post->ID ),'order' => 'DESC', 
    
    'orderby' => 'post_views', 'views_query' => array(
    	  'year'  => date( 'Y' ), // this year
    	  'month' => date( 'm' ), // this month
    	  'day'   => date( 'd' ), // this day
    	   ),
    
    'date_query' => array( array( 'after' => $popular_days_ago )) )); while($recent->have_posts()) : $recent->the_post(); ?>

    That’s all! I hope you understand!

    • This reply was modified 5 years, 4 months ago by Matías.
    • This reply was modified 5 years, 4 months ago by Matías.
    • This reply was modified 5 years, 4 months ago by Matías.
    Thread Starter Matías

    (@m4tl4s)

    1. I also tried with \WordPressPopularPosts\Query but apparently the entire code is wrong.

    2. $popular_days is a function of my theme to sort popular posts by the date published, for example the most viewed posts published 1, 2, 3…7…30, etc. days ago. But without that line it’s the same!

    3. Actually I’m using it right now but with other meta key name and works well:

    <?php global $post; $mvp_related_num = get_option('mvp_related_num'); $pop_days = esc_html(get_option('mvp_pop_days')); $popular_days_ago = "$pop_days days ago"; $category = get_the_category(); $current_cat = $category[0]->cat_ID; $recent = new WP_Query(array('cat' => $current_cat, 'posts_per_page' => $mvp_related_num, 'ignore_sticky_posts'=> 1, 'post__not_in' => array( $post->ID ), 'orderby' => 'meta_value_num', 'order' => 'DESC', 'meta_key' => 'post_views_day', 'date_query' => array( array( 'after' => $popular_days_ago )) )); while($recent->have_posts()) : $recent->the_post(); ?>

    4. The same but without saving the views data in post meta.

    • This reply was modified 5 years, 4 months ago by Matías.
    • This reply was modified 5 years, 4 months ago by Matías.
    • This reply was modified 5 years, 4 months ago by Matías.
    • This reply was modified 5 years, 4 months ago by Matías.
    • This reply was modified 5 years, 4 months ago by Matías.

    Sorry for that. I sent you a message to your page.

    Thank you, and re-read the edited version of the message and answer, please!

    Lmao yes @hcabrera, because I found another plugin that worked when the auto loading function was enabled in my site. Now it’s disabled and a post got viral and I just realized GA views are double than the plugin for that post, so I need back to your amazing plugin… I think it’s the only one that counts very similar to GA ??

    And I’m thinking in contact you when I enable ALP again. Además considerando que sé que hablas espa?ol, mejor aún!

    Firstly, I want to know if can I import the data from this plugin?

    • This reply was modified 5 years, 6 months ago by Matías.
    • This reply was modified 5 years, 6 months ago by Matías.

    Hello. I need the plugin to count views for auto loading posts, but I don’t now how to implement this. Please help!

    • This reply was modified 5 years, 6 months ago by Matías.
    • This reply was modified 5 years, 6 months ago by Matías.
    Thread Starter Matías

    (@m4tl4s)

    There might be a way but again it depends on how the post autoloading has been implemented.

    Please get in touch with the plugin developer and ask them how to you can send a POST request to update the views count of an autoloaded post.

    I don’t understand anything of that ??

    Thread Starter Matías

    (@m4tl4s)

    Oh you need to update the plugin, and with css i changed the size of the logo and wrapper and works good but the hamburger or bars icon doesn’t show in all devices, you could change the icon, i tried to change it/ (font awesome, elusive) but didn’t work.

    same, i need for 991px

    same problem! Google Analytics doesn’t count extra views but Jetpack counts every view from Pagespeed

    Thread Starter Matías

    (@m4tl4s)

    Yes, I’ve activated an option like this: “Set expire caching (Leverage Browser Caching)” but I think it’s for everyone. I’ll disable it.

    Thread Starter Matías

    (@m4tl4s)

    No, retiro lo dicho! Aunque haya regenerado los thumbnails los tama?os no son correctos y algunas se ven deformadas y más grande de lo normal asi que tuve que volver a instalar la versión antigua.

    any form to deactivate it only for home page? posts sliders don’t work for me :/

Viewing 15 replies - 1 through 15 (of 29 total)