• I am a beginner in word press. I have a wordpress site which has contact information shown in various spots. eg. Footer, Sidebar, some pages. Now every place I need to put my contact info I place the contact Info widget and need to put in all the details required by the widget(like e-mail, Phone, etc.)

    My question is that is there any ONE place I can have all the contact info kept and the widgets in all these places, pick up from this common place?

    I foresee similar needs in other sections of the website in the future where I would need to maintain data integrity across widgets for other information.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I actually just saw this tutorial overview of a plugin (Pods) that will let you create exactly what you are mentioning (email, phone number etc) in a central location, and then use short codes to reference the info.

    Thread Starter amitwats

    (@amitwats)

    Thanks W411, this is perfect for my need.

    @amitwats We also have Pods Templates that allow you to create some pre-formatted chunks of content that you can call with shortcodes or widgets. Think of them like ‘mail merge’ blocks, where you can do things like:

    
    <div class="contact-details">
    <strong>Phone</strong>: {@phone-number}<br />
    <strong>Address</strong>: {@business-address}
    </div>
    

    These are enabled under Pods Admin, Components, Templates, “Enable”. You can then access them through Pods Admin, Templates.

    When you’re using them in the widgets, either call them with a shortcode in a text widget like Adam does in the video but instead of field= use template="contact details" (or whatever you named the Pods Template above).

    If you use the Pods Widgets, use Pods – List Items Widget and select your Custom Settings Pod in the Pods Name and select the Template from the list.

    If you have any questions, feel free to jump on our Slack Chat at https://pods.io/chat/

    • This reply was modified 7 years, 5 months ago by Jim True. Reason: Fixing my grammar
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Common data across widgets in my site’ is closed to new replies.