ThemeShaper Forums » Thematic

[closed]

Safe to remove Post Thumbnails function?

(5 posts)
  • Started 3 years ago by LegendsCrazy
  • Latest reply from LegendsCrazy
  • This topic is resolved
  1. Hi all,

    I'm using a child theme of Thematic 0.9.7.7 and I have this in my child themes functions.php:

    function my_postheader($postheader) {
    		$ph = $postheader;
        $postheader = '<a href="' . get_permalink();
    		$postheader .= '" rel="bookmark" title="Permanent Link to ';
    		$postheader .= get_the_title() . '"><img src="';
    		$postheader .= get_bloginfo('url') . '/wp-content/uploads/';
    		$values = get_post_custom_values("thumbnail");
    		$postheader .= $values[0] . '" alt="" class="postimg" /></a>';
    		$postheader .= $ph;
        return $postheader;
    }
    add_filter('thematic_postheader', 'my_postheader');

    Is it "safe" to remove this code from my functions and post thumbnails will still work with the current version of Thematic? Thanks in advance!

    Posted 3 years ago #
  2. Hate to bump here, but I asked this a few weeks ago and I haven't gotten a reply yet. I think that this is causing my current problem. I'm seeing a broken link placeholder image above my permalinks since I upgraded to WP 3.1. It's showing up in Chrome, IE9, and Safari. No placeholder shows up in Opera and Firefox but it does change the cursor to hover. Is it safe to delete the function above? Thanks in advance.

    Posted 3 years ago #
  3. maybe try adding this to your functions php instead:

    <?php remove_theme_support( 'post-thumbnails'); ?>

    edit: nevermind didnt notice you still wanted thumbnails

    Posted 3 years ago #
  4. i think so. but why haven't you just tried already? worst case is it doesn't do what you think and you just add it back. thumbnails do come by default (well thumbs that are set w/ the featured image) but they aren't above the posttitle they way you had them. if you need to pull a lot of old thumbs from custom fields you could try Justin Tadlock's Get the Image plugin

    Posted 3 years ago #
  5. Thanks for your replies.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.