simple wp_title filter (3 posts)

  1. merlin371
    Posted 4 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?


  2. merlin371
    Posted 4 years ago #

    anyone? kinda stuck guys

  3. Luke Mlsna
    Posted 3 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