Forums

Simplepie, exclude the big title (2 posts)

  1. hey2you
    Member
    Posted 1 week 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??

    Thanks

  2. marr
    Member
    Posted 1 week 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>
    </div>

    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>

Reply

You must log in to post.

About this Topic