Questions tagged [read-more]

Issues related to WordPress content's excerpts' trimmed version to have a full content link below the excerpt. Or. issues that are specific to wp_editor's <!--more--> tag.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How to Add Button to Read Full Text From A Page [closed]

I have a page with long long text. I want to show 1/3 text and add a button with "Read Full Text". If a user clicks on the button then with a simple effect full article will show up. How to do that ...
1
vote
0answers
21 views

Exclude read more in the_excerpt

I want to remove "read more" in the next code: <?php the_excerpt(); ?> Is it possible to do in the PHP line directly or I need a filter in funtions.php? I am want to do one by one in PHP query ...
0
votes
1answer
13 views

Changing text for “Continue reading…” translation

I am not satisfied with the read more text in Twenty Fifteen (I am using the French translation). In English it says "Continue reading", and in French it is very similar, but it didn't work well with ...
0
votes
1answer
23 views

“read more” redirects to the wrong page

I would appreciate it if someone can help me out. I am having issues with my blog posts. I had someone customize by site but they made a mistake with the blog posts. I am no longer working with them. ...
0
votes
1answer
22 views

How to automatically add Read more section after the first paragraphe in post?

When copywrighter publish an article, sometimes they forget to add the section Read more, and I have to do it manually. Is there a way to add it automatically in the article ? Thank you very much.
0
votes
1answer
52 views

the_excerpt() is not trimming at <!--more-->

I am using the following code: <?php the_excerpt(); ?> This trims after 50 ish words, way after the <!--more--> I added in the post's source. This, instead, correctly trims out the ...
0
votes
1answer
36 views

Cannot figure out how to add a read more link to a manual excerpt. Please help

Nothing I do works. I am using a manual excerpt and when I paste this code into functions.php the words read more appear but they are not a link. Why is this? add_filter( 'wp_trim_excerpt', '...
1
vote
1answer
41 views

How to use read more text

Is there a way to use Wordpress' read more text? As you can customize the read more text, it would be nice to be able to reuse that text elsewhere instead of hard coding it. My goal is to use the ...
0
votes
1answer
57 views

How to use limit post content on archive page in WordPress?

I am using the advanced_ads plugin on my WordPress website which allows me to create different types of ads including image ad, rich content ad etc. The plugin allows shortcodes usage for showing ads ...
1
vote
1answer
82 views

Excerpt using Read More Tag

How do I get the excerpt of a post that is using a Read More Tag? The documentation states that I should use the the_content function, but I don't want that. I just want the text. Furthermore, I don't ...
0
votes
1answer
376 views

Remove Default Read More Link in Manual Excerpt RSS Feed

I have a site that displays manual excerpts on the blog post page: https://teralynnchilds.com/blog. I added a custom read more link using the snippet found here: https://wpmayor.com/add-read-link-...
0
votes
1answer
27 views

Media is not showing on post page

I'm building a wordpress website based on the theme "Bulk Shop". Most of the content will be added as "post" and will be categorized into "next show", "last show", "music", "videos", etc. https://...
0
votes
1answer
33 views

create a read more link for post and archives

I am building a custom theme. But my theme doesn't have read more button below posts. i don't know how to do that. Can anyone please tell me how to get the read more link below the posts with excerpt ...
0
votes
1answer
34 views

how can I change the read more link destinations and direct all to the same page?

I have 4 read more urls in my woocommerce product listing and i would like all to be directed to a custom page instead of the product info page - preferably using functions.php
0
votes
1answer
34 views

How can I hide/show text only for mobile users?

I have text content on a page that leads to too much scrolling on mobile devices. I'd prefer to avoid having separate pages for mobile/desktop. Ideally, an editor would add a shortcode around certain ...
1
vote
1answer
975 views

How to use “show more” on a page or post to show and hide content

What if you want to use the built-in "WYSIWYG"-button show more, to hide and show text within a post or page? I started out with misunderstanding the function. I thought the function was actually ...
1
vote
1answer
706 views

How to delete read more span on single post view?

How could I complete delete following line on single post view? <p><span id="more-XXX"></span></p> I need to delete whole span tag. Is there any other option than ...
0
votes
0answers
24 views

Read more opens attachment

I'd like the read more button to open the file attached to the post, if there is an attachment. I found this post which I think does what I want, and I've done step 1. I'm a beginner with php so I ...
0
votes
2answers
262 views

How can I display “read more” without any other post text?

I have created the Read more in my posts, but when I add the php tag <?php the_content(); ?> ...it shows the post content with read more button. I only want to display the button, with no ...
0
votes
2answers
49 views

More tag locked in Hemingway

I'm currently using the Hemingway theme as seen here: gamingprofessors.com Currently this theme provides a pleasing tag when generated, however I can't change what the tag reads as. At least ...
0
votes
1answer
123 views

Bad “read more” behavior, trying to fix by inserting tag

Seems that others would have had this same problem with WordPress "Read More" but looking through previous questions with that tag did not help, so posting here. As a new self-hosted WordPress user, ...
0
votes
1answer
345 views

after setup_postdata, the_content() only displays text before the read more tag

I'm building a traveling-page and i need to add the description of a train or a ship into the description of a trip. My code looks like this: <?php if (!empty(rwmb_meta("train_ship"))) { ?> ...
0
votes
1answer
217 views

Can't Get the Read More function to work in the child theme

According to this page in the codex, https://codex.wordpress.org/Customizing_the_Read_More, I just need to add a certain function to the functions.php file to get it to work. I'm doing so in a child ...
0
votes
1answer
34 views

Popup image from text

I'm a newbie and I've been trying to figure out how can I get an image popup from a read more button. I've done this: <p class="p1"> <a class="btn right ngg-fancybox" href="http://www....
1
vote
2answers
1k views

Read more link to external webpage

is it possible for the "Read More" buttons in front page which normally leads to the post , to change it to lead to an external webpage. So one can lead to post and the other can lead to external ...
-1
votes
1answer
5k views

why more tag is not working in my wordpress site

As you can see in the below screenshot, I had insert the <!--more--> tag after 1st paragraph in this article https://igntimes.com/20-amazing-youtube-tricks-and-tips/ But it is not working, any ...
1
vote
1answer
106 views

Any Ideas for Including “More Tag” with get_pages($args)?

I have run into an interesting issue. My intention is to have a front-page.php that displays a list of pages, with titles and content (some of which may be truncated with tag. I have augmented the ...
0
votes
0answers
91 views

How to replace a specific html tag in bulk?

I imported a Blogger XML to WordPress, but Blogger converts the tag <!--more--> into <a name='more'></a>, which is something that WordPress doesn't recognize as it should (I lost the ...
1
vote
1answer
2k views

Read more on the post page itself

I know how to use read more technique to only view an excerpt of the topic on the homepage and click on the read more icon to open the post and view the full content. Can we do it on the post itself?...
0
votes
1answer
49 views

Read More showing only on first post

I created a new menu item which only pulls posts categorized “Webinars” but when I visit the Webinar category page, only the first post excerpt gets a “Read More” button. What do I have to do so that ...
1
vote
1answer
972 views

Do not show excerpt in post content

I need to keep showing excerpt in list of articles on my index, while, not showing it on single post page. I am using more tag to manually define excerpts. Is there a way to trim excerpt from the ...
0
votes
2answers
147 views

Read More in the actual excerpt

I'm using WP version 4.4.4. I have some posts where it has a continue reading button and link to the actual excerpt. My problem is the excerpt also has a continue reading button. Here is my code at ...
0
votes
1answer
4k views

How to add a “Read more” button to my blog?

I have an HTML template which I convert to a Wordpress theme, but i can't add a "Read more" button to the home page. I use the following code in functions.php: function the_content_limit($max_char, $...
2
votes
1answer
137 views

Exclude filter on front page

I am using this code in functions.php to append a button for link to a post. function new_excerpt_more($more) { global $post; return '<a class="excerpt-readmore" href="'. get_permalink($post-&...
1
vote
1answer
485 views

How to move the the_excerpt's read more link to another div

I intend to show an excerpt of each post on my homepage. I use the_excerpt() in my post.php to show an excerpt of each post with a read more button below it. The problem is that I need to have the ...
0
votes
1answer
2k views

Read More link, not visible on home page

I'm running the Nisarg theme on Wordpress for my blog: www.christianvalour.com I have inserted the 'read more' tag into my first two posts, however the 'read more' link does not appear in the ...
0
votes
2answers
158 views

Exclude the content before “the more” on single posts

I have a post with text then "the more" then text after that. The teaser before the more displays on the archive page, but I don't want to display it on my single post page, only the text after the ...
-1
votes
2answers
1k views

How to remove #more… from the post “More” link?

When you insert the "More" link into a post using the "Insert More Break" toolbar icon, the url that is generated is appended with "#more-". Thus when you click that link, you get the full post (via ...
4
votes
1answer
1k views

Hide/show content starting in the middle of a paragraph

I need to be able to hide/show arbitrary content (paragraphs, lists, maybe pictures) based on a user clicking a link. This is easy enough, but I am running into a lot of problems trying to add this in ...
1
vote
1answer
86 views

Change Read More in Child theme

Im like 99% done with my multisite. The only thing left to do is to change the read more link on the child theme. But I can't get it done. Main site (Dutch): www.jeroenbrugman.com 2nd site(english): ...
0
votes
1answer
3k views

How to use Readmore.js? [closed]

I am trying to use Readmore.js for WooCommerce category description "Read more / Close" functionality. I enqueue the JavaScript and add $('article').readmore(); in the "Insert Header and Footer" ...
4
votes
1answer
2k views

Read more tag shows up on EVERY post

I recently read this awesome post and I need help figuring out how to display the 'Read More' link only on posts with more content to display. As it is, currently, it's displaying on every post, even ...
0
votes
2answers
4k views

How to change the “Read more” text?

I am using this code in functions.php to so it will show on the front of my site and show the read more, but the read more is not showing, your help would be appreciated. function new_excerpt_more( $...
2
votes
1answer
1k views

Ignore a more tag when using get_the_content()

This is such a simple question it seems yet I can't find a definite answer on it. So how do you make get_the_content() obtain all the content of a post even if it has <!--more--> inside of ...
1
vote
3answers
915 views

“Read more” link doesn't show up when the post length is under the excerpt length

I have posts with very different post lengths. Sometimes there are very long posts, sometimes a very short comment on a book. I have set my excerpt length to 50 words, but when a post is 25 words ...
0
votes
1answer
147 views

Put teaser content, more-link and full content in different divs if existing… Possible?

im working on a flip-card template and have a problem. <div class="card" id="card-<?php the_ID(); ?>"> <div class="front"> <div class="card-headline"><?php ...
1
vote
0answers
2k views

Add Read More Tag to a post content (Single.php)

I have wordpress custom theme made from scratch including: header.php, footer.php, single.php, index.php, functions.php For Listing the blog list i used index.php with excerpt and read more link to ...
0
votes
2answers
875 views

Define excerpt length by inserting read more tag

I have a blog where the excerpt length is set to 55 words and after that it automatically inserts the read more link. What I want to do is to manually determine the excerpt length by inserting a read ...
0
votes
1answer
73 views

How to customize 'read more'

I'm trying to add a button to every post excerpt. But I get the button without href: function new_excerpt_more( $more ) { global $post; return "<p><a href='" ....
0
votes
1answer
203 views

How to get sort content by page id?

I wont to get short content in my footer area. So, I write my code as follow: $page = get_page_by_title( 'About us' ); $content = apply_filters('the_content', $page->post_content); ?> ...