Michael
Forum Replies Created
-
Forum: Plugins
In reply to: [Meteor Slides] How do I adept CSS-rules to WordPress pluginHi, thanks for the answer.
I added the php shortcode<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>inside my “div #banner”. But still the images breaks through the width/height of my banner.
Is it any other way to make it work? Would it work if I copy #banner’s css code into meteor slide’s css?Forum: Plugins
In reply to: [Meteor Slides] How do I adept CSS-rules to WordPress pluginI tried to add inline styling with: `<div id=”banner” class=”clearfix”
style=”background-image:url(“<?php if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow(); } ?>”); >` and I removed the property of “background-image:url” from my css file. But it did not work.Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?Sorry for late answer.
Here is the page’s code: `<?phpquery_posts(‘showposts=3’);
if (have_posts()):
while (have_posts()):
the_post(); ?><a style=”color:#308651;” href=”<?php the_permalink();?>”> <p style=”color:#308651;” id=”Bowlorama_a_striking_experience”><?php the_title();?> </p></a>
<p id=”BREAKFAST_BOWL_8_Black_Bean_Cake_Greens_Tomato_Avocado_Pic”> <?php echo get_the_excerpt();?>
<br> <a style=”color:#308651;” href=”<?php the_permalink();?>”>Läs mer»</a>
</p>
<?php
endwhile;
else:
echo ‘<p>no posts were found</p>’;
endif;?>
<?php echo do_shortcode(‘[ajax_load_more post_type=”post” posts_per_page=”3″ transition=”fade”]’); ?>
</div><?php
get_footer();
?>`My repeater template looks like this: `<?php
query_posts(‘showposts=1’);
if (have_posts()):
while (have_posts()):
the_post(); ?><a style=”color:#308651;” href=”<?php the_permalink();?>”> <p style=”color:#308651;” id=”Bowlorama_a_striking_experience”><?php the_title();?> </p></a>
<p id=”BREAKFAST_BOWL_8_Black_Bean_Cake_Greens_Tomato_Avocado_Pic”> <?php echo get_the_excerpt();?>
<br> <a style=”color:#308651;” href=”<?php the_permalink();?>”>Läs mer»</a>
</p>
<?php
endwhile;
else:
echo ‘<p>no posts were found</p>’;
endif;?>`
I got two problems.
1. It loads way too aggressive.
2. It only loads the last post over and over again. I’m using an ajax plugin to load content on pageload to add some smooth transition between the pages. Perhaps the ajax plugin interrupt something?Here, check it out: http://michaelpeyron.com/blog/
edit: I added this shortcode instead to avoid the “load on scroll”.
<?php echo do_shortcode('[ajax_load_more post_type="post" posts_per_page="3" pause="true" scroll="false" transition="fade" button_label="Äldre inlägg" button_loading_label="Laddar"]');?>Though, the button is invisible. If you click right under the third post you will load more posts. But still, it only loads the same ones over and over.
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?It’s empty. You told me to remove all the code.
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?I have, is this enough though:
<?php /* Template Name: My Awesome Custom Page */ get_header();?> <div id="content"> <?php query_posts('showposts=3'); if (have_posts()): while (have_posts()): the_post(); ?> <a style="color:#308651;" href="<?php the_permalink();?>"> <p style="color:#308651;" id="Bowlorama_a_striking_experience"><?php the_title();?> </p></a> <p id="BREAKFAST_BOWL_8_Black_Bean_Cake_Greens_Tomato_Avocado_Pic"> <?php echo get_the_excerpt();?> <br> <a style="color:#308651;" href="<?php the_permalink();?>">Läs mer»</a> </p> <?php endwhile; else: echo '<p>no posts were found</p>'; endif; ?> <?php echo do_shortcode('[ajax_load_more post_type="post" posts_per_page="1" transition="fade"]'); ?> </div> <?php get_footer(); ?>Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?Hmm, no, I removed all the code from the repeater, now ajax load more button just loading but nothing else.
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?Thanks mate!
Oh, sorry got another problem that I need some help with regarding plugin. The plugin works well and I have activated so it loads on scroll. I have set the “posts_per_page” to 1. But now it only loads the top/latest posts over and over again.<?php query_posts('showposts=1'); if (have_posts()): while (have_posts()): the_post(); ?> <a style="color:#308651;" href="<?php the_permalink();?>"> <p style="color:#308651;" id="Bowlorama_a_striking_experience"><?php the_title();?> </p></a> <p id="BREAKFAST_BOWL_8_Black_Bean_Cake_Greens_Tomato_Avocado_Pic"> <?php echo get_the_excerpt();?> <br> <a style="color:#308651;" href="<?php the_permalink();?>">Läs mer»</a> </p> <?php endwhile; else: echo '<p>no posts were found</p>'; endif; ?>This is the code, how do I write the code so it load the next post in order and not only the top/latest one?
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?Marked as resolved.
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?Thanks mate!
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?It works! Thanks!
Though, it loads quite aggressive. Gotta add some CSS rules to it. Do I add the css rules through the ajax load more template in dashboard: “<div>
“><p><?php the_title();?> </p>
<p><?php echo get_the_excerpt();?>“>Läs mer»
</p>
</div>”
or do I add the CSS in my php-file? Which way would you go?Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?Sorry, Im not familiar in how the code would look like in php.
[ajax_load_more post_type=”post” posts_per_page=”3″ transition=”fade”]
What do I type around that code in the php-file?
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?http://michaelpeyron.com/blog/
It has the code. Added it to page in wordpress dashboard.
Is it a way to add it via the php-file?Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?wp_footer(); is in footer.php which is included.
I tried adding wp_footer(); to my blog pages as well. But no change.Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?Yes, I do.
<?php wp_footer();?> </body> </html>The bottom of footer.php.
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] What do I miss?http://www.michaelpeyron.com, that is my page.
And, at “nyheter” you will find my latest posts.