[resolved] Add dynamic content under posts (3 posts)

  1. Marxman
    Posted 7 years ago #


    I an not a coder so I hope there is aplugin for this.

    I need a plugin where I can add dynamic HTML content in a post. The content should not be shown in the post on the frontpage, but only under the post while clicking it and entering the single page.

    I hope it is clear.


  2. Kafkaesqui

    Posted 7 years ago #

    A combination of custom fields and the Single Post template should work for you here. References:


    A few plugins that may be of help here can be found:


    One to look at is Get Custom Field Values:


    There is also a template tag for displaying custom field keys and values in a post:


    It may be a bit underpowered for what you want though, as there's no way to control the outout. A simple bit of code to accomplish a basic dump of a single custom field value is:

    <?php echo get_post_meta($post->ID, 'html', true); ?>

    That would work within The Loop (placed in your template) for a custom field with a key of 'html'. It displays nothing if no 'html' custom field key exists with the post.

  3. Marxman
    Posted 7 years ago #

    Ok thanks, gonna study this.

Topic Closed

This topic has been closed to new replies.

About this Topic