• Resolved dvwdesign

    (@dvwdesign)


    Hello,

    I have been long searching for a solution and thought your plugin would save me.
    almost…
    Beware I am a Designer, and though I have some code background I haven’t enough time & knowledge to modify

    Here
    I have a WP multisite, on the main site I want to show 3(or more) news in grid/card format published in subdomain.domain.ext.
    My first article contains a table (an agenda of future events).

    Things work fine if I choose to display full content but if I use the limit words function (any range), the feed gets mangled.
    end of first article and beginning of following one gets commented out and html output is a mess.

    My guess is any HTML end tag would be cut if ever the $words is too short.

    => Solution
    Since I am not sure it would be possible to fix this dynamically, I thought maybe an an option to display full length for a specific post &/or category/kw would work.
    => Option to deactivate on this type of post (since contents is full)
    => or cut only at the more link inserted in the article
    => Or, if exists & full content option is set, pick the summary (but I am not sure it would fix the problem).

    Options
    – Option to Set the “More” Link text OR have it use the dynamic WP setting instead to avoid modifying the php code (tedious on plugin updates/localization).
    the_content_more_link

    – Option to set the title tag
    = I modified the code to display a h5
    Line 528 should look like

    <div class="mpr_the_title"><h5><a href="<?php the_permalink() ;?>" title="<?php the_title_attribute() ;?>" class="mpr_the_permalink"> 
    	<?php the_title() ;?>
    	</a></h5>

    – Option to not have a link on a specific post type (i.e. A full length article)

    – Option to open link in new win/tab

    – Option to display tags. I added this code to your plugin

    $posttags = get_the_tags();
    			if ($posttags) {
    			echo "<div class='tags'>";
    			  foreach($posttags as $tag) {
    			  	echo "<span class='tag'>";
    				echo $tag->name . ' '; 
    				echo "</span>";
    			  }
    			 echo "</div>";
    			}

    And it works

    Thanks for your help

    Addendum:
    I have found just after posting, that the second solution indeed works if I choose full content (but not if I choose a word count limit) and insert the more link inside the article.

    • This topic was modified 3 years, 3 months ago by dvwdesign.
    • This topic was modified 3 years, 3 months ago by dvwdesign.
    • This topic was modified 3 years, 3 months ago by dvwdesign. Reason: more information added
  • The topic ‘Bug (mangled html) if word limit is set or more Options needed’ is closed to new replies.