excessive34
Forum Replies Created
-
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededI have switched to twenty-twelve, thats how I got infinite scroll working. Still get the overlap issue with masonry + Infinite scroll however.
It’s back up, sorry about that.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededSorry, I was messing around and tried something different.
Everything is back in place, again.. I really appreciate you helping me to resolve this.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededAlright heres what I have.
header.php (Placed above the body tag)
<script> jQuery( document ).ready( function( $ ) { infinite_count = 0; // Triggers re-layout on infinite scroll $( document.body ).on( 'post-load', function () { infinite_count = infinite_count + 1; var $container = $('#content'); var $selector = $('#infinite-view-' + infinite_count); var $elements = $selector.find('.hentry'); $elements.hide(); $container.masonry( 'reload' ); $elements.fadeIn(); }); }); </script>functions.php
function my_masonry() { if (!is_admin()) { wp_register_script('jquery_masonry', get_template_directory_uri(). '/js/jquery.masonry.min.js', array('jquery'), '2.0.110526' ); wp_enqueue_script('jquery_masonry'); add_action('wp_footer', 'add_my_masonry'); function add_my_masonry() { ?> <script> jQuery(document).ready(function($){ $('#content').masonry({ itemSelector: 'article', }); }); </script> <?php } } } add_action('init', 'my_masonry');Do you see any issues within either of these?
Or am I calling the script in the header incorrectly?Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededThat seems to have led me on the right track, thanks my friend!
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededI may have located the issue: When turning on the debugger, heres what I was greeted with:
`
Notice: Undefined property: WP_Query::$post in /home4/aa/public_html/wordpress/wp-includes/query.php on line 3017Notice: Trying to get property of non-object in /home4/aa/public_html/wordpress/wp-includes/query.php on line 3385
Notice: Trying to get property of non-object in /home4/aa/public_html/wordpress/wp-includes/query.php on line 3387
Notice: Trying to get property of non-object in /home4/aa/public_html/wordpress/wp-includes/query.php on line 3389
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededAdditionally, I removed the Masonry script to see if that was interfering, infinite scroll still did not load additional posts.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededI’ve added the correct pagination, removed the post feature. Still with no luck.
Where exactly do I place the code from the tutorial that you posted to get it worked with masonry? Does that go in functions.php?
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededAwesome, I’ve added the above function.. However, still no luck.
I’m curious as to if me not having pagination has anything to do with new elements not loading?
Or.. Could it be my post loop?
Or… Do I simply need to follow the link you’ve provided?Heres the top portion of my loop:
global $more; $more = 0; query_posts('cat=7,8,9,10&posts_per_page=15' ); if (have_posts()) : while (have_posts()) : the_post(); ?>In any case, I really appreciate the help my friend. I’ve been at this for a day or so to no avail and your help is truly appreciated.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Infinite Scroll help neededThe Front Page is set to: “Home” and this contains the post loop.
I dont have a “Post-Page” set as I’ve completely customized the theme.
If you take another look, I’ve gotten masonry to work with what im doing.. However, Infinite-Scroll I am having no luck.
Is this something I’m going to need to put in without jetpack since everything is customized?
Forum: Fixing WordPress
In reply to: Links not showing in posts^Thats exactly what it is! How do I display a small portion of the post without losing markup?
Forum: Fixing WordPress
In reply to: Links not showing in postsIm currently just coding a theme with mock content atm.. This is by no means my “live” site.
The links are properly coded, using the link button/hard-coded… So I’m not sure why it doesnt display, unless Im missing something.
Forum: Fixing WordPress
In reply to: Adding graphical background to postsYeah, I’ve been toying around with getting custom fields added.. That shouldnt be visible anymore.
I believe I can do this with custom-fields, however my post loop doesnt seem to have anyplace to add the needed code.