79835753

Date: 2025-12-02 10:45:49
Score: 2
Natty:
Report link

🛠️ Methods for Centralized Content Updating

1. Using a Custom Field or Theme/Plugin Options (Recommended)

This is the most robust and standard WordPress way. You store your prices in a single location, and then use code/shortcodes to display that value wherever needed.

2. Custom Shortcodes (For Simple Text)

If your prices are just simple text, you can create a custom shortcode that returns the current value you've stored in a central location.

3. Using a Global Content Plugin

There are plugins specifically designed to let you create a reusable content block (like a price listing or a call-to-action) and insert it across many pages.

The Problem with Your Current Setup (ID Elements)

Your proposed solution of linking two separate text shortcodes (price1 and price2) is generally not how web development works. HTML ID elements are meant for styling or unique scripting, not for content synchronization.

The goal is to eliminate the need for price1 and price2 and replace them with a single source, e.g., fixed_fee, that you reference multiple times.

Old Method (Hard to manage)New Method (Centralized)Page A: Price 1: [price1]Page A: Price: [fixed_fee]Page B: Price 2: [price2]Page B: Price: [fixed_fee]Update: Edit Page A, then Edit Page B.Update: Edit the centralized value once.

I recommend starting with Method 1 (Advanced Custom Fields or similar) as it provides the most flexibility, especially since you have different prices per country and fixed fees. You could set up fields for:

Would you like me to find a popular, highly-rated plugin that offers the "Global Content Block" functionality, or should we focus on using Advanced Custom Fields?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kevin