[Resolved] the_content not showing on my cpt single post via hook element

Home Forums Support the_content not showing on my cpt single post via hook element

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1323413
    Pete

    I have this hook element…
    after_entry_title
    Display: latest work CPT single posts

    ALL of it (even the aa before and bb after the_content) shows up except <?php the_content(); ?>

    
    	
    <?php global $post; echo get_post_meta($post->ID, 'when', true); ?>
    
    	WhatsUp HandyMan 
    	
    <?php global $post; echo get_post_meta($post->ID, 'what2', true); ?>
    	
    	in 
    	
    	<?php if(has_term('', 'suburb')) {?>
    <?php echo strip_tags (get_the_term_list( $post->ID, 'suburb', ' ',', ')); ?>,
    <?php } else { ?>
    <?php } ?>
     south of Perth.	
    
    <span class="work-content">aa<?php the_content(); ?>bb</span>
    #1323446
    Pete

    my stupid mistake!

    #1323508
    David
    Staff
    Customer Support

    I hope thats a ‘resolved’ – glad to hear it, if it is

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.