2tyerd
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Lazy loading EmbedsOkay so I’ve gone with the second template, I’m pretty sure thats the right one.
So I replaced the
the_content()
with the shortcode[ajax_load_more nextpage="true" nextpage_urls="true" nextpage_scroll="350:30" nextpage_post_id="'. get_the_ID() .'" pause="true" pause_override="true" button_label="Next Page" images_loaded="true" transition="fade" container_type="div"]
So it looks like this now:
<?php /** * The template used for displaying homepage content. * * @package Rookie */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. ?> <header class="entry-header"> <?php the_post_thumbnail( 'large' ); ?> </header><!-- .entry-header --> <?php } ?> <div class="entry-content"> <div class="homepage-widgets"> <?php dynamic_sidebar( 'homepage-1' ); ?> </div> <?php echo do_shortcode('[ajax_load_more nextpage="true" nextpage_urls="true" nextpage_scroll="350:30" nextpage_post_id="'. get_the_ID() .'" pause="true" pause_override="true" button_label="Next Page" images_loaded="true" transition="fade" container_type="div"]'); ?> </div><!-- .entry-content --> </article><!-- #post-## -->
Nothing changed though. Where have I messed up?
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Lazy loading Embedsok yeah sweet I’ll open a ticket
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Lazy loading EmbedsI have another template thats used for displaying content on the homepage
<?php /** * The template used for displaying homepage content. * * @package Rookie */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. ?> <header class="entry-header"> <?php the_post_thumbnail( 'large' ); ?> </header><!-- .entry-header --> <?php } ?> <div class="entry-content"> <div class="homepage-widgets"> <?php dynamic_sidebar( 'homepage-1' ); ?> </div> <?php the_content(); ?> </div><!-- .entry-content --> </article><!-- #post-## -->
Not sure which to use
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Lazy loading EmbedsThanks for the msg man.
Just bought it and trying to figure out where I need to put the shortcode.
My homepage template code looks like this:
get_header(); ?> <div id="primary" class="content-area content-area-<?php echo rookie_get_sidebar_setting(); ?>-sidebar"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'homepage' ); ?> <?php endwhile; // end of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?> <?php wp_link_pages(); ?>
Which code should I replace with the shortcode?
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Lazy loading EmbedsThat sounds like what I’m looking for…I look forward to checking it out.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Lazy loading EmbedsI want to use this code from the demo example but instead of post_per_page=4, can I include scroll_distance=”150″?
<?php $term = $_GET['term']; if(empty($term){ $term = 'WordPress'; } echo do_shortcode('[ajax_load_more post_type="post, page, portfolio" search="'. $term .'" posts_per_page="4" scroll="true" css_classes="plain-text" button_label="Show More Results"]'); ?>
- This reply was modified 7 years, 9 months ago by 2tyerd.
Forum: Fixing WordPress
In reply to: Code for dropdown menu for buddypress register formthanks ill post it there
Forum: Fixing WordPress
In reply to: Code for dropdown menu for buddypress register formNot really. but its because I wasn’t clear enough.
This is the a portion of the code right now for my register form. Its for the username, email, password and email.
<div class="six columns"> <input type="text" id="reg-username" name="signup_username" class="inputbox" required placeholder="<?php _e("Username", 'kleo_framework');?>"> </div> <div class="twelve columns"> <input type="text" id="reg-email" name="signup_email" class="inputbox" required placeholder="<?php _e("Your email", 'kleo_framework');?>"> </div> <div class="six columns"> <input type="password" id="reg-password" name="signup_password" class="inputbox" required placeholder="<?php _e("Desired password", 'kleo_framework');?>"> </div> <div class="six columns"> <input type="password" id="confirm_password" name="signup_password_confirm" class="inputbox" required placeholder="<?php _e("Confirm password", 'kleo_framework');?>"> </div>
In this same form I want to have a dropdown menu where you select your age because it didn’t come included in the theme. The age options being from 18-99.
I thought a div tag would be enough since all the other fields also use div tags. I’m very new to coding.
Thanks for your help
Regards
Forum: Fixing WordPress
In reply to: Code for dropdown menu for buddypress register form<select?name="Age"> ????<option?value="None selected">Please select below</option> ????<option value="18">18</option> ????<option value="19">19</option> ????<option value="20">20</option> <option value="21">21</option> etc etc </select>
Something like this?
Forum: Fixing WordPress
In reply to: remove an element using child themeThanks man worked perfect. I tried it before but it didn’t work because I also had to create the folder the file was in called page-parts
I just deleted my cache and now its all fixed! haha
I’ve been following that codex and understand it for the most part.
I don’t quite understand the declaring them conditionally part though, could that cause this kind of issue?
Forum: Plugins
In reply to: [Yoast SEO] xml sitemap problem with php7https://nootrologist.com.au/sitemap_index.xml
I’ve tried re-saving permalinks, regenerating xml sitemaps, clearing cache.
Only thing that works is reverting to php5.6
How can I fix this?
Forum: Plugins
In reply to: [Comments - wpDiscuz] Remove subcription confirmation email?when you say yo don’t recommend it, does that mean there is a way to enable it?
Forum: Plugins
In reply to: [WP Super Cache] is my htaccess normal?Go to your cPanel –> File Manager –>public_html and then find your .htaccess file.
You can edit the code using Code Editor
Replace whats in there with the following:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress