WordPress.org

Ready to get started?Download WordPress

Forums

Always attach my own URI parameters? (4 posts)

  1. lxg
    Member
    Posted 9 years ago #

    Hi, I've got a small problem: how can I move WP to always attach certain of my own URI parameters? I've build WP into my own page and need it to always attach these parameters to all URIs automatically generated.

    This is especially needed for the font resizing function; it does work quite fine (with WP, too); but when changing the site it is set back to default. And, no, I don't want any JavaScript or Cookies. ;-) So I just need to know a neat way to tell WP about query parameters I always want to be attached.

    You can have a look at http://www.zirona.com/news/index.php

    TIA, Alex

  2. lxg
    Member
    Posted 9 years ago #

    Maybe I should be a bit more precise:

    I need WordPress to attach &lang=$lang&fontsize=$fontsize to any automatically generated URI. So if a user clicks links within the WP section, the parameters have to be transported. This is needed to transport the fontsize variable, as I don't want to use JavaScript or Cookies.

    Does anyone know, in which of the WP files I could change it or how else to accomplish that? This may even be quick and dirty solution, I don't care.

    Alex

  3. Kafkaesqui

    Posted 9 years ago #

    Which files to edit depends on which functions will need editing. If you're not sure where to find (or how to search for) them in the source, it would help to know which functions/template tags you're currently using that you need to have know about your GET values.

  4. lxg
    Member
    Posted 9 years ago #

    I thought there was a global way to set additional query parameters.
    However, I currently "disabled" (by <!-- -->) certain functions, yet I intend to use all of them later on. Although my design won't be recognizable as WordPress, the engine is completely the same. So it's _all_ tags I need to know about the GET values.

    Maybe there could/should be a possibility to define own URI parameters in future WP releases; I think I'm going to write some feature request.

    But still I have no solution to my prob. :-(

Topic Closed

This topic has been closed to new replies.

About this Topic