Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
16 votes
5 answers
9k views

How to end the excerpt with a sentence rather than a word?

Here is the excerpt of the post on my home page. I want to end the excerpt with a sentence. In this case it is ' opportunities. '. I know how to modify the length but it won't do what i want. Here is ...
mc_dev's user avatar
  • 319
10 votes
2 answers
15k views

Only show content before more tag

I am using the Siren Template. In homepage.php this code is used to display the portfolio content print_excerpt(200); But I to need show the content only before <!--more--> I have used this: ...
MajidGh's user avatar
  • 103
9 votes
5 answers
42k views

How to remove "read more" link from custom post type excerpt

Is there a way I can add some kind of pre_get_posts() filter to strip out the "read more" link that appears at the end of the_excerpt() for only 1 certain custom post type that I specify? If so, can ...
Evster's user avatar
  • 314
8 votes
4 answers
6k views

Is there a has_more_tag() method or equivalent?

I need to determine if the current post has a "more" tag. I'm currently using $pos=strpos($post->post_content, '<!--more-->'); Am I missing a built in method similar to has_excerpt()?
N2Mystic's user avatar
  • 3,193
6 votes
1 answer
2k 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 ...
blendergasket's user avatar
4 votes
4 answers
10k views

Modify 'Read more' link adding a new class

I want to add a class to the 'Read more' link. Actually I have this: <?php the_content( 'Read more...' ); ?> Which outputs: <a href="...?p=14#more-14" class="more-link">Read more…</a&...
Alvaro's user avatar
  • 2,593
4 votes
1 answer
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 ...
Jeff W's user avatar
  • 118
4 votes
2 answers
3k views

Style the text before <!--more--> in single.php

I'd like to style differently the content before the link, but in single.php. To be more specific, all my posts on the homepage only have a summary, and the rest of the text is cut thanks to the use ...
koskoz's user avatar
  • 245
4 votes
1 answer
964 views

<!--More--> not functioning

I have the following blog template with the the_content outputted. I have placed <!--more--> However it does not appear to be functioning, http://www.milknhny.co.uk/DVine/?page_id=19 Is there ...
Kirsty Marks's user avatar
3 votes
1 answer
2k 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 ...
AdamJones's user avatar
  • 328
3 votes
2 answers
22k views

Word limit in post_content after more tag

I am using the following code to hide the teaser and show content only after more tag in loop: <?php $after_more = explode( '<!--more-->', $post->post_content ); if( $after_more[...
Skotlive's user avatar
2 votes
1 answer
188 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-&...
Boris Kozarac's user avatar
2 votes
1 answer
280 views

Modify the_content after the more tag

I have created a custom plugin that pulls video and images out of a post and puts them into a nicely formatted set of galleries. The only problem is that the plugin doesn't allow me to put a video or ...
Hunter Nelson's user avatar
2 votes
3 answers
3k views

How to only show the first X words (from each post) on the home page?

How can you have it so that the site's home page will only show the first X (let's say 300) words of the post? But without using "more" tag, or hand filled excerpts? I am looking for a plugin/hack ...
Tal Galili's user avatar
  • 1,833
2 votes
2 answers
3k views

"More" span making trouble

I've created my own custom post type using this tutorial: http://thinkvitamin.com/code/create-your-first-wordpress-custom-post-type/ Everything works fine, but I'm having major problem with "Read ...
Wordpressor's user avatar
  • 5,051
2 votes
2 answers
2k views

Different 'read more' links

Is there an easy way to add another 'read more' link? I'm using the standard 'continue reading' link for some posts but I also want to use a different text like 'more info' for other posts. Can I do ...
George Grigorita's user avatar
2 votes
2 answers
4k 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?...
Samer Mahfouz's user avatar
2 votes
1 answer
185 views

Get the <!--more--> link text

How I can get the link text is using WordPress? By default is something like: Read More <span class="meta-nav">→</span> buy I want to get that value in a variable because some ...
leticia's user avatar
  • 263
1 vote
2 answers
5k views

How to get the excerpt of a page before more tag?

I have many pages in my wp installation. All I want is to be able to display the excerpt of any page, also on any page (before more tag). How do I go about it? I was fetching the content of the ...
Alex Herrmann's user avatar
1 vote
2 answers
2k views

How to make <!--more--> a button?

There is plenty of information on how to make the Read More function display different text in the Codex but what kind of filter would need to be used to make it display <button class="readmorebtn" ...
MTT's user avatar
  • 3,576
1 vote
1 answer
209 views

Only show read more text when when wp:post-excerpt meets excerptLength

NOTE: The issue I'm encountering is specific to Block Themes; I understand how to filter the text returned from the_excerpt in a Classic Theme. What I would like to only show read more text when when ...
JDQ's user avatar
  • 159
1 vote
1 answer
2k 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 ...
notnull's user avatar
  • 123
1 vote
1 answer
1k views

Read More is not working in query posts

I have Query_posts in my page. the posts have tags to separate for read more, But while doing query posts it is pulling all content for <?php the_content('read more..');?>
Yalamber's user avatar
  • 182
1 vote
1 answer
6k views

How to create a load more post entries like Twitter?

Hey guys, last days i have been trying to figure out how to do that. As read on http://net.tutsplus.com/tutorials/javascript-ajax/create-a-twitter-like-load-more-widget/ but inside wordpress. And i ...
Vitor Argos's user avatar
1 vote
1 answer
1k 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 ...
Trek's user avatar
  • 13
1 vote
1 answer
889 views

Redirect to page 2 after comment

I would like to have commenters going to the page 2 of a paginated post. My posts are separated by the <!--more--> tag so i have the www.site.com/post-title and www.site.com/post-title/2/. I ...
lu-bhz's user avatar
  • 78
1 vote
1 answer
6k views

Woocommerce "read more" instead of "add to cart" [closed]

Right now my shop have this "add to cart" button. How can I replace this with a "read more" or "show more" button? The "read more" button should link to the product page instead of just add it to the ...
toxen's user avatar
  • 131
1 vote
1 answer
310 views

Using More Tag in Combination with the_excerpt

I'm not sure if this is even possible, but I thought I would ask anyway. I'm currently using a custom plugin that connects to my forums. If people are in a certain custom usergroup, they can see the ...
Jon's user avatar
  • 171
1 vote
1 answer
2k views

how to make <!--more--> function in RSS feed like it does in posts

I'm dealing with an RSS feed problem that is making me crazy. I have begun manually incorporating in my recent blog posts in order to cut off the post at the desired spot and entice people to click ...
kate's user avatar
  • 11
1 vote
2 answers
3k views

Add a <!--more--> tag to a custom post type

I'm building a portfolio site for a friend and he's got three seperate photo packages and may want to add more in the future, so I've created a custom post type called Packages so that he can add as ...
Evie Milo's user avatar
1 vote
1 answer
3k 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 ...
Rvervuurt's user avatar
  • 299
1 vote
1 answer
617 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 ...
developer's user avatar
  • 151
1 vote
3 answers
352 views

Change behavior of the <!--more--> tag

When I click "read more" at the bottom of one of my website posts, it just loads the rest of the text in the same page and the same section, thus overflowing elements with text and spoiling my layout. ...
Mehdi Haghgoo's user avatar
1 vote
1 answer
625 views

Turning the read more link into a button [closed]

I want to change the read more text to translate it and add a background to it to make it look more like a button. As it is done here: http://unaventananuevayork.com/. I´m using ultimatum theme and ...
user50662's user avatar
1 vote
2 answers
4k views

Auto insert More tags in all posts

I have a theme for my mobile site that requires the <!--more--> tag in my posts for it to display an excerpt of my post's content. I've got over 2000 posts already, and its going to take ...
Feyisayo Sonubi's user avatar
1 vote
1 answer
425 views

Extracting gallery images in Wordpress 3.5 on index.php

I'm trying to add a slider on my front blog page for every gallery post, but I have some trouble extracting the images from the post gallery, using the following code: $post_content = get_the_content(...
Ziik's user avatar
  • 191
1 vote
1 answer
2k views

Load more posts with multiple queries

I've been developing a theme which uses the load more ajax plugin, everything is setup and working great with the main query. But, once I setup a new query for popular posts, the load more posts ...
user156's user avatar
  • 193
1 vote
3 answers
643 views

"more" tag doesn't appear when browsing category achives or search

Almost finished my website, but ran into one problem: When you view the archive of a category or do a search, the "more" (or "continue reading") link/ tag doesn't appear. It words fine on the homepage....
Will Richardson's user avatar
1 vote
1 answer
211 views

How to put "Read more" link in Custom Excerpt inside p tag?

I have a piece of code that extracts the first paragraph from the post, enclosed in a p tag. I want to add a "Read more" link inside the p tag referring to "the full post". Please ...
Juniper Scott's user avatar
1 vote
0 answers
803 views

WP Bakery Load More Button loads the same posts

I'm trying to feed posts in my blog page with a WP bakery widget. I have 8 posts published, but when I hit load more button it loads first 3 posts instead of those in the end. Attaching screenshots, ...
ultrapanam's user avatar
1 vote
1 answer
49 views

Exclude read more in the_excerpt [closed]

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 ...
nabuke's user avatar
  • 23
1 vote
1 answer
208 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 ...
Bjørnar Hagen's user avatar
1 vote
1 answer
200 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 ...
Jeff Wilkerson's user avatar
1 vote
2 answers
3k 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 ...
Aggelos SunDance Troulakis's user avatar
1 vote
1 answer
135 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 ...
Killinski's user avatar
1 vote
1 answer
151 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): ...
ginobrugman's user avatar
1 vote
3 answers
1k 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 ...
Jose M.'s user avatar
  • 11
1 vote
0 answers
3k 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 ...
Gaurav Saharawat's user avatar
1 vote
1 answer
953 views

Read More link scrolling page

I'm creating a theme, and I want to prevent the page from being scrolled when a user clicks 'Read More' and the code given in the Wordpress Codex is not helping me at all. My functions.php is exactly ...
mindseyeblind's user avatar
1 vote
1 answer
1k views

new_excerpt_more link not working properly

My "Read More" button is linking to the current page page instead of the excerpt page it is suppose to be linking to. Here is my function in function.php file: function new_excerpt_more($more) { ...
jppower175's user avatar