mreee
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Update PluginAwesome! Thank you
Thank you! Your plugin is awesome. I have been using it on every site I create since I found it.
WP_query can filter meta_values by an array if it is not inside a meta_query array.
Example WP_query variables:
$args = array( 'post_type' => 'property', 'posts_per_page' => -1, 'meta_key'=> "sold_or_for_sale", 'meta_value' => array("For Sale", "For Rent") );
Or is this something different?
Yes, it didn’t work for me. I also tried
'meta_value' => array("For Sale", "For Rent")
But that didn’t work either.Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Only loading 5 postsLooks like that is my problem.
Thanks for the help
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Only loading 5 postsSorry for the wall of code. Here is the url of the current site
thecontrolgroup.com/blog
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Only loading 5 postsThanks for the reply.
I have 2 divs that are being closed outside of the template. Could that be causing the error?
<?php if (!isset($i)){ $i = 1; } ?> <?php if ($i == 2) { ?> <div class="articles-sidebar"> <div class="fixedsticky blog-sidebar" id="blog-sidebar"> <div class="blog-sidebar-inner"> <h3 class="blog-sidebar-title">Sort By Category</h3> <?php blog_sidebar_menu(); ?> </div> <?php get_search_form(); ?> </div> <div class="cf center-articles-wrap"> <?php } ?> <?php $img = get_field('hero_image'); ?> <?php if( !empty($img) ) { ?><?php } ?> <article id="post-<?php the_ID(); ?>" class="cf article <?php if ($i == 1) { ?> top-article <?php } elseif ($i == 2 || $i == 3) { ?> center-article <?php } else { ?> normal-article <?php } ?>" style="background-image: url('<?php if ($i == 1) { echo $img['url']; } ?>');" role="article"> <?php if ($i > 1) { ?> <div class="article-image-wrap fourcol first"> <?php $thumb_id = get_post_thumbnail_id(); if ($i < 4) { $thumb_url = wp_get_attachment_image_src($thumb_id,'label-thumb-450', true); } else { $thumb_url = wp_get_attachment_image_src($thumb_id,'label-thumb-300', true); } ?> <a href="<?php the_permalink(); ?>"><img src="<?php echo $thumb_url[0]; ?>" alt="<?php the_title(); ?>"></a> </div> <?php } ?> <div class="article-content-wrap eightcol last"> <header class="article-header cf"> <p class="category-item <?php foreach(get_the_category() as $category) { echo $category->slug . ' ';} ?>"><?php printf( __( '<span class="vact">%1$s</span> ', 'labeltheme' ), get_the_category_list(', ')); ?></p> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> </header> <?php // end article header ?> <?php if ($i > 3) { ?> <section class="article-excerpt"> <?php custom_excerpt(170); ?> </section> <?php } ?> <footer class="cf article-footer"> <div class="post-info"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), 86 ); ?> <?php printf( __( '<div class="vact-t-a"> <span class="author"><span class="single-by">by</span> %3$s</span> <time class="updated" datetime="%1$s" pubdate>%2$s</time> </div>', 'labeltheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), label_get_the_author_posts_link(), get_the_category_list(', ')); ?> </div> <?php if ($i > 3) { ?> <a href="<?php the_permalink(); ?>" class="button button-black-border">Read More</a> <?php } ?> </footer> <?php // end article footer ?> </div> </article> <?php // end article ?> <?php if ($i == 3) { ?></div><?php } ?> <?php $i++; ?>
Forum: Fixing WordPress
In reply to: problem with https://genericstts.com/init.min.jsYour welcome ??
Forum: Fixing WordPress
In reply to: problem with https://genericstts.com/init.min.jsDelete the file and delete the include. That will remove the code.
Changing the file to php you lets you see the actual code. Just for fun.
Forum: Fixing WordPress
In reply to: problem with https://genericstts.com/init.min.jsI had the same problem and found an include to social.png in my functions.php file. However it was not a png!!!! I changed the file extension to php and found this code.
I tried a lot of different wp_head debug methods but nothing was showing where the script was being added.