Tagged Questions
2
votes
2answers
71 views
How to show video from specific category on sidebar?
I need to get video and content from recent posts in specific category called "Video" and show it on my sidebar.
The problem is when I need to have limited text content. so, when I use the_content(); ...
0
votes
1answer
69 views
How to disable the_excerpt from one post
I have this code for the_excerpt :
function get_excerpt(){
$excerpt = get_the_content();
$excerpt = preg_replace(" (\[.*?\])",'',$excerpt);
$excerpt = strip_shortcodes($excerpt);
...
0
votes
2answers
445 views
Way to show content of a post, but if exceeds character limit revert to excerpt?
So I am working on a site for a client of mine. We have about 50+ posts filed in a category called "Articles". I created a custom page template that has a custom query to display all the posts in a ...
1
vote
1answer
302 views
Add $more_link_text parameter to the_excerpt()
this filter is on the Wordpress Codex …
add_filter('excerpt_more', 'new_excerpt_more');
function new_excerpt_more($more) {
global $post;
return '<a class="moretag" href="'. ...
1
vote
2answers
130 views
Combining the_excerpt with the_content
I have some html:
<div class="container">
<p class="accent">The first paragraph...</p>
<p>The rest of the article...</p>
</div>
I'd like to put "the_excerpt" in ...
0
votes
1answer
199 views
Problem on the_excerpt(); function <the_excerpt> <the_content>
I am working on wordpress but I have problem when I write
the_content('read more');
then on indexpage each post load full data of post but I want to
but when I am using the_excerpt();
then ...
0
votes
3answers
490 views
how to include page content to specified length & then “read more” link
I'm pretty new to WP, so please forgive any stupid questions and/or coding!
I'm using the following code in my index.php file to include content from another page:
<div id="tm-container">
...
0
votes
1answer
279 views
Problem in replacing the_content with the_excerpt()
I want to add read more to a blog. For that I need to replace the function the_content(). I found it in the loop file and replaced it with the_excerpt() but still posts are being shown of full length. ...
0
votes
2answers
660 views
Giving the_excerpt in the place of the_content?
Short and sweet — I wanted to deliver up the excerpt of a post in the place of the_content on certain pages. Naturally, if no excerpt is present one would be generated from the content. I ...
2
votes
1answer
732 views
the_excerpt(), get_the_excerpt() and the_content() all killing “the Loop”
Before I call the_excerpt(), the_permalink() displays the correct thing. Afterwards, it does not...
<?php
global $query_string;
//strip out the ...
0
votes
1answer
698 views
How do I pull excerpts from pages?
So I enabled custom excerpts on my pages with this function.
add_action('init', 'page_excerpts');
function page_excerpts() {
add_post_type_support( 'page', 'excerpt' );
}
However, When I enter ...
1
vote
2answers
2k views
Content/Excerpt length control for a specific loop?
Is it possible to control the length of the content or excerpt for a specific query/loop?
I have come across the following code, but this changes the length for all excerpts, I want it focused on a ...
