Paul Jura
Forum Replies Created
-
Forum: Plugins
In reply to: [PJ News Ticker] PHP7.2 error with ‘show_excerpt’ optionHi,
The global thing I copied from a post on the WordPress site. Anyway, made the change as you suggest. Check the latest version again, please.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] PHP7.2 error with ‘show_excerpt’ optionHi,
I couldn’t reproduce the error but did some reading and took your advice to call setup_postdata. Please get latest version and check if this resolves your issue.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] Multiple categoriesHi,
Grab the latest version for multiple categories.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] News Ticker Post ImageHi,
Go to your website, look in the folder: wp-content/plugins/pj-news-ticker and edit the file pj-news-ticker.php
At around line 170 you can add this code to include the post thumbnail:
if (has_post_thumbnail($post)) { $content .= '<img width="100" src="'.get_the_post_thumbnail_url($post).'">'; }
You can change width=’100″ to whatever size you like.
The whole block should look something like this:
$content .= '<span class="pjnt-item">'; $content .= '<a target="'.$options['target'].'" href="'.get_permalink($post).'">'.get_the_title($post); if (has_post_thumbnail($post)) { $content .= '<img width="100" src="'.get_the_post_thumbnail_url($post).'">'; } if ($options['show_excerpt'] == 'true') { $content .= ' - '.get_the_excerpt($post); } $content .= '</a>'; $content .= '</span>';
This is not something I want to include officially, as I don’t think it looks good. I think the marquee should be text only. But you are free to modify your own copy as you like. This should get you what you want.
Good luck.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] Repeat the ticker without a breakHi, I’ve just uploaded a new version that gives you the option to display the next set of posts without a gap. Check it out, let me know if you have any trouble.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] Custom Post TypeHi, I’ve just uploaded a new version that allows you to select custom post types. Check it out, I hope it works for you.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] News Ticker Post ImageHi, you are free to modify the plugin as you like, but I can’t support you with it.
If you want to add a thumbnail to the marquee, I would suggest you edit the file pj-news-ticker.php, look for the the code where it renders the title and the link, and add your thumbnail there. Probably use the function get_the_post_thumbnail($post).
Good luck.
Forum: Plugins
In reply to: [PJ News Ticker] Opening links in a new tabHi Andrew, link target is now a supported option in new version.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] Problem with RTLHi, thanks for your reply. I have fixed the problem, please update.
Cheers!
Forum: Plugins
In reply to: [PJ News Ticker] Problem with RTLHi, when I make my site in Arabic, I don’t see any problem.
Please show a screenshot, or show a website, with example. And list other plugins you use. Your website aeico.com.ly is blank.
Forum: Plugins
In reply to: [PJ News Ticker] Display post contentHi,
Sorry I did not reply sooner, I didn’t get notification of your post.
Yes, showing excerpt is simple enough. There is a new version available with the option to show excerpt. Check it out.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] Only 10 posts displayedHi Tom,
Sorry, it should be num_posts=”-1″ to get all posts.
Minor update to plugin just changes the help text.
Thanks for the report.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] Plugin conflictHi, thanks for the report. New version fixes the problem.
Cheers,
PaulForum: Plugins
In reply to: [PJ News Ticker] Multiple tickers – different post categoriesHi,
You can have multiple tickers on your site, and for different categories. The settings screen will configure your default options, but you can specify custom options per ticker with the shortcode.
Eg. Use [pj-news-ticker post_cat=”cat1”] on one page, then [pj-news-ticker post_cat=”cat2”] on another page.
As for multi language, I’m not familiar with how that works, so can’t really help you there, sorry.
Forum: Plugins
In reply to: [PJ News Ticker] PHP ShortcodeHi, the shortcode provided works just fine in pages and posts, you should not need anything else. Let me know if it’s not working for you?