• Resolved Andreas 2013

    (@andreas-2013)


    Hello SEO-friends,

    I generate thousands of dynamic pages with only one page using parameters, for example -> mydomain.de/page/?id=2104

    Each page need another title and description, so in the past I modified the Yoast-file class-frontend.php, to generate them automatically. This is much work, and unfortunately I have to do it after every plugin-update again.

    Is there another way to build titles and descriptions, when pages are generated dynamically from a database?

    And if not, would it be possible, to write a kind of “child-plugin” to save my modifications in case of an update?

    Thank you all in advance!

    Andreas

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support devnihil

    (@devnihil)

    The Yoast SEO plugin does have the ability to control the title and meta description settings through the use of template settings in SEO>Search Appearance. We also have additional information on using the title/meta description template variables as well as a list of which variables are available for use at the following link: https://kb.yoast.com/kb/yoast-wordpress-seo-titles-metas-template-variables/

    Thread Starter Andreas 2013

    (@andreas-2013)

    Hi devnihil, thank you for your reply!
    I’m not sure, if you understood me right. In the class-frontend.php I make a database query to get a value from a field of a mysql-table. By means of this value i build the title, respectively modify the variable $content (did i remember variable name right?).
    I don’t think that the template variables will help in this case. Remember, that i generate thousands of (dynamic) pages with different titles from only one page.
    I’m sure there are a lot of webmasters with the same problem, and I’m wondering, what they are doing.

    Plugin Support amboutwe

    (@amboutwe)

    You or your developer can use the wpseo_title filter to customize this feature.

    A few examples can be found here: https://gist.github.com/amboutwe/34b80a4755b1a9140026bc2c82720114

    Thread Starter Andreas 2013

    (@andreas-2013)

    Hello amboutwe,

    thank you very much, I will try this!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Titles and descriptions in dynamic parameter URL’ is closed to new replies.