• Hi,

    I am making a wordpress theme and I have a question based on the <?php the_content(); ?> in single.php, is there a function that allows me to split the content into different sections. Such as if the post content is:

    [special code=”400″]
    Hello. This is the rest of our content.

    I want to split the [special code=”#”] into a different position in the post template than the rest of the content instead of making them both together.

    Or a way to always select the first line of the content.

    Thank you.

Viewing 1 replies (of 1 total)
  • i think you need a little more info not really getting what your trying to say here

    you want to write a shortcode ???

    i think i got it now, have you tried using a a custom field then you can call what ever is in there in a different section of the template but i guess your limited a bit as you would have to enter any formating in html rather than tinymce

Viewing 1 replies (of 1 total)

The topic ‘Question: Spliting post content into sections.’ is closed to new replies.