Simplepie, exclude the big title (2 posts)

  1. hey2you
    Posted 8 years ago #

    Hello all,

    anyone have used simplepie?? If so, could anyone tell me how to exclude the big title of the feed. For example, news feed from google, when the feed comes, it contains a big title google news on top of all feeds, how to exclude that??


  2. marr
    Posted 8 years ago #

    I'm not sure if you're using a plug-in or a diy installation.

    If you've done your own Simplepie installation and have a page like their sample then just remove the header section:

    <div class="header">
    <h1><a>get_permalink(); ?>"><?php echo $feed->get_title(); ?></a></h1>
    <p><?php echo $feed->get_description(); ?></p>

    If you're using the plugin from Simplepie, you need to edit the template you're using (found at
    /public_html/wp-content/plugins/simplepie-plugin-for-wordpress/templates/yourtemplate.tmpl) to remove:

    <h3><a href="{FEED_PERMALINK}">{FEED_TITLE}</a></h3>

Topic Closed

This topic has been closed to new replies.

About this Topic