Adding image to “read more” link under “limit post” plugin
-
Hello
I am using limit-post plugin by Alfonso Sánchez-Paus Díaz y Julián Simón de Castro (thats a long name isnt it 😀 ) .
Before using this plugin, I used the more tag with image integrated in it, using the following code:
<?php the_content('<img src="/al-rasid/personal/wp-content/uploads/more.gif" alt="read more" title="Read more..." />'); ?>
However, for the plugin to work, I have to replace that code with:
<?php the_content_limit(750); ?>
( 750 is a variable, the number of letters to cut the post on)So in this new code, I dont know hot to add the image that I want to replace the “more” with.
I tried making up this code and placing it in the index, which is actually a mix of both old and new codes, but it didnt work properly either.
<?php the_content_limit(750,'<img src="/al-rasid/personal/wp-content/uploads/more.gif" alt="read more" title="Read more..." />'); ?>
I noticed a line in the plugins php (you can see it via clicking on the plugin’s link ), which is:
function the_content_limit($max_char, $more_link_text = 'تابع للقراءة والتوقيع←', $stripteaser = 0, $more_file ='') {
I made some change, adding the more image’s url, as follows:
function the_content_limit($max_char, $more_link_text = 'تابع للقراءة والتوقيع←', $stripteaser = 0, $more_file ='/3areda/wp-content/uploads/more.gif') {
However, it didnt work. The image didnt show up.
I searched the plugin’s website, but nothing is mentioned about the “$more_file” tag and how to use it. And the blog is in spanish or portugesse, and I am unfamiliar with these.
Any help will be appreciated.
- The topic ‘Adding image to “read more” link under “limit post” plugin’ is closed to new replies.