billhan
Forum Replies Created
-
Forum: Plugins
In reply to: [Print, PDF, Email by PrintFriendly] Issue with “Above content” placementNone of the two settings (WordPress theme/ Content Algorithm) solved my problem, but I found that adding
<div class="clear"></div>
in pf.php did. This was not a good solution, though, because I’d lose it at the next plugin update. So I decided to manually insert the code into my template at the desired location and apply custom CSS to it.Thank you for your assistance.
Thank you very much for your valuable support. All my questions have been answered and I’m going to rate your plugin 5 stars.
It worked like magic! Thank you very much for your quick and efficient support!
I only have to figure out how to display the posts titles on the ticker, instead of their URLs, as it does now.
ticker1 text: https://mysite.com/post1/
ticker1 link: https://mysite.com/post1/
and
ticker2 text: https://mysite.com/post2/
ticker2 link: https://mysite.com/post2/
Or maybe this is not possible and I have to input manually the text that scrolls?
Thank you for your prompt answer. The site I’m trying to set up is on my computer, so I can’t provide a link.
The demo for the theme I want is here: https://demo.wpzoom.com/?theme=tribune – their infinite scroll is very much like yours, that’s why I hope it will work.
And the code php file is like this:
<?php $loop = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ), 'posts_per_page' => option::get( 'breaking_number' ), 'meta_key' => 'wpzoom_is_breaking', 'meta_value' => 1 ) ); ?> <?php if ( $loop->have_posts() ) :?> <div id="news-ticker"> <div class="news-ticker-container"> <dl id="ticker"> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <dt><?php echo time_ago(); ?> </dt> <dd><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></dd> <?php endwhile; ?> <?php wp_reset_postdata(); ?> </dl> </div> </div><!-- #news-ticker --> <?php endif; ?>
What I tried was to replace the <dt> and <dd> lines with the code generated by the Dity plugin:
<?php if(function_exists('ditty_news_ticker')){ditty_news_ticker(3336);} ?>