Before you ask please READ THIS

Text in Works List Template Page

edited November 2014 in Fame Posts: 3
Hello,

when I enter text in the wordpress tandard text window for "Works List" pages the text is not shown on the page. Is there a way to bring a descriptive title text before or after the list of works?

Thank you!

Comments

  • AirAir
    edited November 2014 Posts: 10,970
    Hi there:-)

    This space was not designed for adding text but if you need you can make such modification:
    File works-list.php line ~72, change:
    
    elseif ($wp_query->have_posts()) :
    
    to:
    
    elseif ($wp_query->have_posts()) :
    	    if(!$genre_template){
    		    echo '<div class="real-content" style="padding: 20px 0; max-width: 1080px; margin: 0 auto;">';
    
    		    $works_postid = $apollo13->get_option( 'cpt_work', 'cpt_work_page' );//This is page id of works page
    		    $content_post = get_post($works_postid);
    		    $content = $content_post->post_content;
    		    $content = apply_filters('the_content', $content);
    		    $content = str_replace(']]>', ']]&gt;', $content);
    		    echo $content;
    
    		    echo '</div>';
    	    }
    
    Should do it if you selected works page in theme options:-)

    With regards.
    Post edited by Air on
  • Thank you very much for your great help!

    Googol
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!