• Let’s see if I can explain this…

    I’m setting up a section for my writing. You can view it here: http://www.dandelioncake.com/fiction/. I have it set up by querying post_parent because I want to use pages to do this instead of posts. Before each title I would like to have either Bits and Pieces, Short Stories, or Childrens Stories depending on what type it is. For instance, I’d like it to read: Bits and Pieces: Doll Parts with the “bits and pieces” plain text and the “doll parts” the permalink. This is easy to accomplish for the single page because I can just use different templates but I can’t for the life of me figure out how to do it on the main fiction page with all the excerpts.

    I wish pages could be assigned to categories cause then I could just write up an if else thingy but they can’t so does anyone have any ideas?

    Thanks :o)

Viewing 1 replies (of 1 total)
  • Hi eee-dee,

    either do some hard coding in the page specific template before the loop
    Example:

    <div id="container">
    <div class="entry">
    
    <h2>Here goes your top of the page text</h2>
    
    <ul>
    <?php wp_list_pages('sort_column=menu_order&child_of=698&title_li='); ?>
    </ul>

    or use a plugin for page inclusion like Improved Include Page (you find it under Extend on WordPress.
    Eaxmple:
    <?php if(function_exists('iinclude_page')) iinclude_page(1017,'displayTitle=true&titleBefore=<h2 class="sidebar-header">'); ?>

    where in my case page 1017 contains the text lines.

    Good hunting.

Viewing 1 replies (of 1 total)

The topic ‘Need Special Text Before Title’ is closed to new replies.