WordPress.org

Ready to get started?Download WordPress

Forums

Seriously Simple Podcasting
[resolved] Page title on podcast page always "Podcast" (5 posts)

  1. augiem
    Member
    Posted 10 months ago #

    There doesn't seem to be any way to set the page title on the main podcast list page generated by this plugin. The title is simply "Podcast". The All in One SEO plugin isn't able to rewrite this title either. I've looked through the database and the PHP files in the plugin and cannot find where this title is being set.

    http://wordpress.org/plugins/seriously-simple-podcasting/

  2. Hugh Lashbrooke
    Member
    Plugin Author

    Posted 10 months ago #

    You can follow the instructions int he third FAQ to customise your podcast page templates and override this title. That would be the easiest way of handling this.

  3. augiem
    Member
    Posted 10 months ago #

    Thanks for the reply!

    I had looked at using that template, but it doesn't contain the header which has the <title></title> tag in it. This is what I was referring to when I said Page Title, not the <h1></h1> field.

    The only way I can think of modifying the title for this page would be to find where the header is being generated by the theme and add some code to do a special case for the podcasting page and override it, but that seems a little bad to me. I suppose I could also rewrite the header with a function, but again, seems messy just for one page on the site.

    Can you tell me where in the code you set the <title> tag to Podcast? Its ugly but it would be easier for me to just go change that line. (Or if its in the database, I can change it there. I didn't see it when I looked yesterday.)

  4. BmGhDZ9K
    Member
    Posted 10 months ago #

    @augiem you don't want to edit your database or the Podcast files because they will be updated the next time Hugh updates the plugin.

    Instead you can edit the page title using a filter for just that page. This requires you to write some code and place it into your functions.php file. This is the filter you'll want to use:

    http://codex.wordpress.org/Plugin_API/Filter_Reference/wp_title

    So you can write an if-then statement in your functions file that will check if the page is the Podcast archive, and if it is you can target just the title using the wp_title filter, and if you set your filter to run LAST it will catch the "podcast" in the <title> that Hugh's plugin has put there and you can re-write it on the fly just before the <title> tag is sent out for rendering.

    Hope that helps :D

  5. augiem
    Member
    Posted 10 months ago #

    @BmGhDZ9K

    Thanks for the tip on the filters! I was thinking I was going to have to something like that to catch the page title, but it seemed an ugly solution. I guess that's the way its done. Thanks!

    Unfortunately, I've already had to modify the plugin because I needed it to show the player widgets on the archive page instead of just in the podcast pages themselves and that was coded into the plugin to leave it out on the archive pages. (There also seems to be a bug detecting the WP version in the same area of code.)

Reply

You must log in to post.

About this Plugin

About this Topic