Beppe Domani
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Issue after updating to 4.4many thanks Samuel!
the modified file random.php is OK!!!
problem solved!Forum: Plugins
In reply to: [Read More Right Here] [Plugin: Read More Right Here] one category only?Hello Wooliet!
Most of the blog is without RMRH and only ONE page with many post (templatize page) have RMRH options.
So is easier to have all blog without rmrh-postId- and put code ONLY for the templatized page.Saving this page as a template and use it with ‘post template plugin’ is easy to use!
If you want see https://www.newbokan.net (w/o rmrh-postId-) and https://www.newbokan.net/index/index.php/episodi/ with rmrh-postId-
Is a page with a post of category “Yattaman08” and tag “episodi”
Forum: Plugins
In reply to: [Read More Right Here] [Plugin: Read More Right Here] one category only?RESOLVED:
and now…
modify read-more-right-here.php
delete all the code from
function wt_rmrh_morelink_filter
to
add_filter('the_content_more_link', wt_rmrh_morelink_filter, 999);
uploading this modified page overwriting the old read-more-right-here.php
Activate plug in admin plugin page
et voilà!!Only in the templates page where you added the more link filter code after the query has a RMRH functions!!!
Yatta!!
Forum: Plugins
In reply to: [Read More Right Here] [Plugin: Read More Right Here] one category only?I de-activate the plugin and in a Template page after the code
<!-- The query --> <?php query_posts('cat=23&tag=episodi&order=ASC');
I just add:
function wt_rmrh_morelink_filter($link) { global $post; $target = "class=\""; $pos = strpos($link,$target); $newClass = "rmrh-postId-". $post->ID; // the 'class' has been completely removed, add it back if($pos === false) { $target = "<a "; $pos = strpos($link,$target); $replacement = "class=\"" . $newClass . "\" "; } else { $replacement = $newClass . " "; } $at = $pos + strlen($target); $result = substr_replace($link, $replacement,$at,0); return $result; } add_filter('the_content_more_link', wt_rmrh_morelink_filter, 999); global $more; // set $more to 0=chiusa, set $more to 1=aperta $more =0; ?>
So any class=”more-link” are changed into class=”rmrh-postId-555 more-link”
and now?
Forum: Plugins
In reply to: [Read More Right Here] [Plugin: Read More Right Here] one category only?How can I add RMRH plugin only to ONE template page?
Forum: Plugins
In reply to: [Plugin: Read More Right Here] What is the call function?Hello Wooliet,
There a way to use rmrh only in a determinate page or post and NOT in all blog?
It’s possible to use rmrh only in template pages?
Many thanks