hectorasencio
Forum Replies Created
-
Hi,
I didn’t find the solution but a workaround; using
class="no-responsive"
and adding a little CSS to emulatedatatables_scroll_x="true"
behaviour, I lost this beautiful plus buttons but tables are scrollable and consistent.PD: sorry for duplicate, I don’t find how to edit posts…
I’ve eliminated the whole query_post and the error is still shown at the same point…
I also tried to deactivate all the plugins but no luck.
No sticky posts. I’m using the regular loop at index.php:
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); // El cuerpo del post está en content.php get_template_part( 'content', get_post_format() ); endwhile; else: ?> <div class="large-12 medium-12 columns"> <h2>Ups</h2> <p>Vaya, parece que aún no hay artículos publicados aquí...</p> </div> <?php endif; ?>
But I read somwhere that custom queries would affect the behaviour of the main loop. So, in the sidebar I’m using this:
<?php $args=array( 'category_name' => 'Video', 'posts_per_page' => 4 ); $Loop = new WP_Query($args); if($Loop->have_posts()) : while($Loop->have_posts()) : $Loop->the_post();?> <div class="extracto-post"> <div class="extracto-imagen-caja"> <a class="extracto-imagen" title="Ver <?php the_title(); ?>" href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('portada'); ?> <i class="fa fa-youtube-play"></i> </a> </div> <h3 class="extracto-titulo"> <a title="Ver <?php the_title(); ?>" href="<?php the_permalink(); ?>"> <?php the_title(); ?> </a> </h3> </div> <?php endwhile; endif; ?>
and this:
<?php query_posts('meta_key=post_views_count&orderby=meta_value_num&posts_per_page=4'); if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="extracto-post extracto-mini"> <div class="extracto-imagen-caja"> <a class="extracto-imagen" title="Ver <?php the_title(); ?>" href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('portada'); ?> </a> </div> <h3 class="extracto-titulo"> <a class="extracto-imagen" title="Ver <?php the_title(); ?>" href="<?php the_permalink(); ?>"> <?php the_title(); ?> </a> </h3> </div> <?php endwhile; endif; wp_reset_query(); ?>
And the query I used at footer is this:
<?php $args = array('exclude' => '1,2'); $categories = get_categories($args); foreach($categories as $category) { echo '<a title="'.$category->name.'" href="'.get_category_link( $category->term_id ).'">'.$category->name.'</a>'; } ?>
Thanks for your time!
Hi Brandon, thanks for reply!
The number is a kind of fallback if the plugin is deactivated, and now I’m loading 30 posts because the client ask me for a diferent layout.
Playing around and trying to figure out what happen, I noticed that repetitions are diferent depending what category is; ‘Actualidad’ category repeats from the first, ‘Vida’ repeats from the second, ‘Dinero’ from the third, ‘Entretenimiento’ from the first again, ‘Deportes’ from the second again, ‘Musica’ from the first, ‘Humor’ from the first and ‘Videos’ do it from the third.
In author and search results pages pages I also get this random behaviour. All repetitions begins at 31 position and the weird thing is that it changes in my local seup with an old version of database and get me diferent numbers…
You can take a look at here:
https://testing.codigonuevo.comForum: Plugins
In reply to: [Knews Multilingual Newsletters] DOCTYPE apears on customized templatesNope, I checked it by login the server, and the transfer was OK… in fact I use TimeViewer for file transfer and updated Knews whole plugin in the same way and the other tamplates were fine.
May be the thing is document’s charset or something like that… I will test it when I found a moment.
Forum: Plugins
In reply to: [Knews Multilingual Newsletters] DOCTYPE apears on customized templatesI don’t think so xD
What I mean (I want to remark it) is that the issue appears in the step of choose the template that’s allready installed inside Knews… my code was OK, in fact I followed your suggestion of copiyng the lines at the beggining of (in this case) Casablanca template.
Regards.
Forum: Plugins
In reply to: [Knews Multilingual Newsletters] DOCTYPE apears on customized templatesResolved too!
I know this post is closed, but I have to explain how I solved my issue:
@carles: You was right, my code was full of HTML entities because I used this to compress it: https://inlinestyler.torchboxapps.com/styler/convert/
But this was not the problem.
After some falling testings following your suggestions finally I opened the template in the HTML Knews editor (why I didn’t before? I don’t know…) and I discovered the problem: in the moment of create the newsletter from my customized template, the editor ripped out the first ‘<‘ right before DOCTYPE declaration.
Simply I edited manually and ‘bualá’, newsletter is OK now.
Lost of thanks for your support, and I hope it will be usefull for someone else.
Forum: Plugins
In reply to: [Knews Multilingual Newsletters] DOCTYPE apears on customized templatesSending…
Forum: Plugins
In reply to: [Knews Multilingual Newsletters] Unsuscription outside the email messageThanks a lot Carles!
I’m about go on holidays (oeoe!) but I’will play around with this functions when back at work.
Best regards!
Forum: Plugins
In reply to: [Knews Multilingual Newsletters] Unsuscription outside the email messageHi Carles,
thanks for response!I’m looking to implement the second option you propose, but my doubt is how to generate that specific user token…
I’m not much experienced on PHP but I figure out that you have a function/method for this pourpose, can you guide me where to find it and if have any dependecies?
Promise to post the results in this post for everybody sharing.
Regards.
Hector.Forum: Plugins
In reply to: [Knews Multilingual Newsletters] Slow Newsletter submissionHi @doso,
I understand, reading Carles explanation, that CRON is WordPress independent but not WP-Cron… If you are using the first one, and having tha same problem my be your cron job is not correctly seted up.Forum: Plugins
In reply to: [Knews Multilingual Newsletters] Slow Newsletter submissionHi Carles, you are right @doso was talking about another issue, but the topic’s title is a bit confuse ’cause match my exactly my problem.
Thanks for clarify about CRON!
Forum: Plugins
In reply to: [Knews Multilingual Newsletters] Slow Newsletter submissionHi!
I’m having the same issue; I stared a submision for 7000 recipients yesterday at 14:45 and at now it had sent only 1900…
In fact, this morning I checked the progression and it was 1%! Despite I’m using WordPress Cron function I considered the possibility that being the sesion closed (at WP) it stopped the submision. It makes sense or I’m fliping out?
Also I’m using an IIS Server… :\
Forum: Plugins
In reply to: [Knews Multilingual Newsletters] Mass unsuscription, how can I…Ok, I’ll do this way but…
I have 204 pages of suscribers and this is only a half!When I finally install WP on IIS I’ll check databases and will try to figure out how to do it in a hit.
I leave this post open to share the results I find.
Best,
Hector