• So I have an hourly rate that changes.

    And, I want to enter this rate at one location and then I want this rate to automatically change across several different websites where my current rate is being displayed. What’s the best way to do that?

    Don’t know if this helps but all the websites are running different WordPress installations.

    Where can I enter the changing number and how can I pull it in at all the different locations?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    So I have an hourly rate that changes.

    How do you have that functionality, is it from a theme or plugin?

    It sounds like the main site that’s storing that information will need to have some form of API to serve out that rate. How to do that is harder, not becuase it’s hard ot do, but because there’s just to many ways ot actually do it depending on how the other sites are going to read it in. Some possibilities are:

    1. Output the value as a JSON object and use some JavaScript code to add it to the page.
    2. Output the value as plain text and use some PHP functions to get it and add it where it needs to go.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enter value once and optain it on different websites’ is closed to new replies.