0
votes
0answers
30 views

Excerpt for each post type and for is_front_page

i try to adjust the excerpt for each post type and especially for the front page. function isacustom_excerpt_length($length) { global $post; if (is_front_page() || is_home()){ if ...
1
vote
3answers
97 views

How to echo excerpts with wp_list_pages?

I've tried to echo excerpts in wp_list_pages with the code below. It works, but only for one of the child pages. How would I echo the excerpt and title for each child page? <?php $children = ...
3
votes
1answer
86 views

Manual excerpts for pages not working on Search

Image says it all... Page Edit: Search Results: functions.php to enable page excerpts add_post_type_support( 'page', 'excerpt' ); search.php code for displaying excerpt <?php ...
0
votes
2answers
561 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 ...
0
votes
1answer
299 views

Custom wp_list_pages() function

I have following code in my .php file: $my_pages = wp_list_pages("title_li=&child_of=".$my_id."&echo=0"); Then I create an <ul> <ul> <?php echo $my_pages; ?> ...
0
votes
2answers
537 views

How to add an excerpt and read more link to a page?

I've a custom/static "homepage.php" in my templates directory at my WordPress. Now I need to show differents "page excerpts" in my homepage, but I don't know what should be do it. At this moment I've ...
2
votes
2answers
461 views

How do I modify this page template to show subpage excerpts (not post excerpts)?

I have made a page template which shows linked subpages using this bit of code: <?php $mypages = get_pages( array( 'child_of' => $post->ID, 'sort_column' => 'menu_order', 'sort_or ...
0
votes
1answer
75 views

simple category search form returns full text - but I need excerpts

I have member pages. I set their "membership type" as a certain category. I want to search the members now. I use this simple form that does what I need, except that I need the results to display as ...
0
votes
2answers
247 views

Using the_excerpt() on a page

I've been trying to utilize the PHP excerpt function to call from her recent blog post to post on a main landing page without avail. Any thoughts? <div id="home_news" class="prefix_9 grid_3"> ...
0
votes
1answer
2k views

Archive limit the text of the_content

here's the code for my archive page.. <?php /* Template Name: Archive Page */ ?> <?php get_header(); ?> <div id ="maincontent"class = "group"> <?php ...
0
votes
1answer
369 views

Static front page with excerpt

I'm currently developping a theme for WordPress, and I have run into a little issue. I have to display some text as well as a "latest articles" list on the front page. I have the front page set to ...
2
votes
1answer
1k views

How to show post(excerpt) from specific category on wp page?

I need this on 3 pages, all 3 from different categories, and then to show several post excerpts from all 3 categories in sidebar of home page.