WordPress.org

Ready to get started?Download WordPress

Forums

modifying the title and description in a plugin (2 posts)

  1. Anthony Brown
    Member
    Posted 3 years ago #

    Hi there, I am developing a portfolio plugin but i have one question. What is the proper way to modify the wordpress title and description? Is there a function present for that? I want to change the title to the current project the user has selected. Thanks for any help

  2. security_man
    Member
    Posted 3 years ago #

    i assume you are talking about changing the meta tags depending on the project, correct?

    if not then nevermind the rest of this :)

    there isnt a wordpress function per-se, if you look at the header.php template you will see how the title tag is being generated now. usually a series of if statements to build whatever is finally echoed. Just add the code you want into that and i think thats what you are asking for

Topic Closed

This topic has been closed to new replies.

About this Topic