the_content – add description to page listings in templates?
-
Hi All.
After having ZERO luck even getting a reply on the .org forums, i figured it was worth a try over here.
I have templates made that list subpages using wp_list_pages().
I need to list the content up to the page break. you can apparently do this with the_content() class, but i dont know what to use as the parameter for the location of the page it relates to.what should i put in the last parameter of the class?
here is my code:
<?php get_header(); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <div class="entry"> <p> <ul> <?php wp_list_pages('sort_column=menu_order&title_li=&child_of='.$post->ID.'&depth=0');?> <?php the_content('Continue reading ', FALSE, 'LOCATION TO PAGE NEEDS ADDED HERE'); ?> </li> </p> </div> </div> <?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>Can anyone help out?
Its all questions and no answers over on the .org site so it seems. -
-
I thought as much but i figured it was worth a go. the .org forum seems to be mostly questions by people like me. there is really no support or answers.
Thanks for replying.
-
https://en.forums.wordpress.com/topic.php?id=3700&replies=1
There are the differences laid out. -
thanks. i did read that.
however, when youre struggling for an answer you will ask everywhere thats a possible resource.
-
Understandable, but I’m afraid we don’t have your answers. We just don’t have that kind of access to our templates.
- The topic ‘the_content – add description to page listings in templates?’ is closed to new replies.