List Categories and Subscription after Posts-Where to put coding in loop.php
  • amandahbamandahb January 27

    I updated to Magazine Basic 2.7.7. and lost the coding to list categories at the end of each post; I know it goes before the tag coding in loop.php. WordPress.org gives you 'part' of the category coding. I thought there was a ? or ?> in front of the coding. I also would like to add my 'subscription' form at the end of each post. I can't remember where to place the coding for my subscription box within the loop.php.

  • cbavotacbavota January 31

    This is why creating a child theme is a good idea. Then your changed will still be intact when you upgrade, though some minor changes might still be need once in a while. Read up on that at: http://bavotasan.com/2011/creating-a-child-theme-in-wordpress/

    This is the lower section on your single posts:

    114
    115
    116
    117
    118
    119
    120
    echo '<div class="entry">';
    $subtitle = get_post_meta($post->ID, 'subtitle', true);
    if($subtitle) echo '<p class="sub">'.$subtitle.'</p>';
    the_content(__('Read more &raquo;', "magazine-basic"));
    wp_link_pages(array('before' => '<p><strong>'.__('Pages', "magazine-basic").':</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
    the_tags(__('<p class="tags"><small><strong>Tags:</strong> ', "magazine-basic"), ', ', '</small></p>');
    echo '</div>';


    You would need to do something like this to add HTML:
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    echo '<div class="entry">';
    $subtitle = get_post_meta($post->ID, 'subtitle', true);
    if($subtitle) echo '<p class="sub">'.$subtitle.'</p>';
    the_content(__('Read more &raquo;', "magazine-basic"));
    wp_link_pages(array('before' => '<p><strong>'.__('Pages', "magazine-basic").':</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
    the_tags(__('<p class="tags"><small><strong>Tags:</strong> ', "magazine-basic"), ', ', '</small></p>');
    ?>
    Add your HTML here
    <?php
    echo '</div>';

Hey there!

Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.

Register

Categories

In this Discussion

Tagged