Support » Fixing WordPress » How to manage frequently changing values and automatically show them in posts?

  • Let’s say I have a website that shows features and prices of different services. These features and prices change very often and I don’t want to update the posts manually or by mysql every time they change…

    In fact I want to be able to edit the features and prices for all services within a single file / or mask.

    In every wordpress post I want to use a shortcode or something like that to show “service_a_features” + “service_a_price” or “service_b_features” + “service_b_price” and so on.

    How could I accomplish that?

    Before WordPress I just used a file called “update.php” in which I had defined variables. I then included the update.php in all of my webpages and used echo $service_a_price to show the the value.

    I need to do this with hundreds of custom data fields. How can I comfortably achieve my Goal?

    • This topic was modified 3 months, 1 week ago by Yui. Reason: moved to fixing wordpress
Viewing 2 replies - 1 through 2 (of 2 total)
  • it’s hard to answer. it depends on what kind of services page setup you have. and what kind of price logic you have and what you have to make a connection between the features and price, then based on that you can apply customizations.

    Thread Starter just0nequestion

    (@just0nequestion)

    Thank for your time @vijayhardaha !

    Basically I just need to be able to modify

    value a
    value b
    service a
    service b

    and have these values loaded into my wordpress posts and pages every time someone opens the post / the loop is running.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.