Excerpt appearing at bottom of post – Version 1.319
-
Hi nobita,
I updated my test site and on one of my posts, an excerpt of the same article is appearing at the bottom of the post in the div that contains the Topics & Tags.
-
Hi snowme
Please tell me Excerpt Type of Customizer.
WordPress Excerpt or HTML in Excerpt.
WordPress Excerpt is remove all html tags
HTML in Excerpt is keep html tag and shorter content.
and other, Raindrops has magic notation.
If you are doing the excerpt displayed in the customizer
In certain post, there are described methods for displaying the full text.
When you add the following to the post body, and even if it is set to excerpt display, that post only allows you to view the full html text.
If you have the following phrase in the post content
[raindrops skip-excerpt]
You pointed out, I think to be associated with these settings.
but,If WordPress Excerpt was setted. Please tell me your WEBSite or ScreenShot, if possible.
Thank you.
I’m using HTML in Excerpt. The excerpts show up correctly on the main page. The problem I’m having is on one of the post pages. An excerpt of itself is showing up at the bottom of the post for some reason. I have a screenshot of it HERE
Thanks to the screen shot, we understand the cause
I’m add share link at single post( version 1.319 )
This link, it seems they’ve broken under the influence of something
Please Add following code at functions.php
<?php $raindrops_allow_share_link = false; // ADD ONLY THIS LINE /** * functions and constants for Raindrops theme * * * @package Raindrops * @since Raindrops 0.1 */ if ( !defined( 'ABSPATH' ) ) { exit; }
Please add var
$raindrops_allow_share_link = false;
if you using child theme child theme / functions.php
If you want to add to the child theme, the location where you want to add is, it does not have to be at the head
What kind of strings, I want to know whether that precludes the appropriate display, if you could tell me a string that describes the possible entry content ,happy.
Thank you.
I added the line to my child themes functions.php and it fixed the issue.
I believe the cause was an apostrophe in the title of the post, “What’s a Bit”. The link cut off right after the word “What”. Here’s a look at the broken share link.
<a bit?<="" a="" s="" href="data:text/plain;charset=utf-8,<div style="border:1px solid gray;padding:1em;box-sizing:border-box;"><h3><a href="https://test.labsrc.com/whats-a-bit/">What"><div>Welcome to the first ever installment of SrcBits, an ongoing series comprised of tips, notes, commen...</div><div></div></a>
Thank you for reply
https://github.com/tenman/raindrops/blob/master/functions.php#L10415
$excerpt = wp_html_excerpt( $content, $excerpt_length, '...' ); $excerpt = wptexturize( $excerpt );
I will change above and fix next version.
Is OK for you ?
Thank you.
Yeah I’m all good. Thanks for the fix.
Thank you !! for letting me know the results
Hi Nobita,
Sorry I think I misunderstood you. I tested
$raindrops_allow_share_link = false;
and it fixed the issue by hiding the share link.I just tried adding
$excerpt = wptexturize( $excerpt );
to the main themes functions.php and the long share link still exists. I’m not sure if I was supposed to add anything else for the fix.Sorry for the confusion.
please do not worry
Since my code is badI think that it is okay if this
https://github.com/tenman/raindrops/blob/master/functions.php#L10394-L10398
$title = $article->post_title; $title = wp_kses( $title, array() ); $title = wptexturize( $title ); $content = $article->post_content; $excerpt = wp_html_excerpt( $content, $excerpt_length, '...' ); $excerpt = wptexturize( $excerpt );
Thank you for your kindness
above code not enough
wptexturize() feel improperly.
'"
single quote after double quotes.
Is when it is not able to convert a well characters when this pattern
I tried adding the code you posted at https://gist.github.com/tenman/d579513a0d88bbb1e16f to my child theme’s functions.php, but it didn’t seem to change anything. Do I need to add this code to the main themes functions.php?
Thanks for all your hard work.
to my child theme's functions.php
Location describing the code, little different.
It was a lack my explanationIf possible try next version of Raindrops.
https://github.com/tenman/raindrops/releases
version 1.323 download zip
I think it maybe resolved.
thank you for your contribution
I downloaded version 1.323 to my test site and it fixed the issue.
What is the Share link supposed to do?
Thank you!!
The WordPress, such as the Press This, it has the ability to easily bookmark a page.
However, this bookmark will use one of the post.
When I write a post on my blog, some of the references, it is often to make a note in order to not forget.
At that time, I, you can copy the title and URL, to create a link of html.
This is because it is troublesome work, towards the blog, I thought it useful if there is a source of the link.
Even Twitter, in other social media, and simple to use the Oembed
But I’m nothing to see WordPress content share link.
Then I’m trying it
Users will judge it Usefull or Not
Thank you.
- The topic ‘Excerpt appearing at bottom of post – Version 1.319’ is closed to new replies.