WordPress.org

Ready to get started?Download WordPress

Forums

simple wp_title filter (3 posts)

  1. merlin371
    Member
    Posted 3 years ago #

    Hey guys I've made a page that shows different content depending on a variable on the URL, but my problem is I'm trying to find a way to make it so that the page will change title as well depending on what's showing, so I had this made but is not working

    add_filter( 'wp_title', $page_title, 10, 2);

    I just need something simple like that and I will automatically change the $page_title variable any ideas of what I'm doing wrong, or maybe there's a different way, or is there a way to use shortcode on a page title?

    thanks

  2. merlin371
    Member
    Posted 3 years ago #

    anyone? kinda stuck guys

  3. Luke Mlsna
    Member
    Posted 2 years ago #

    Take a look at this article if you're still struggling.

Topic Closed

This topic has been closed to new replies.

About this Topic