Hello everyone, I have a task that requires displaying the same data on multiple pages of a WordPress site. While I could copy and paste the table code onto each page, the problem arises when a change needs to be made. Updating the table on every single page manually would take hours. Ideally, I would like to use a plugin that allows me to save a table with prices in the database and insert it into records with shortcodes.
This way, I could make changes to the table in one place and have it reflected on all pages using the shortcode. However, I haven't found a suitable plugin for this yet and would appreciate any suggestions or solutions from the forum readers.
In my opinion, AdvancedCustomFields (including ACF Options Page) is a good solution. You can create tables on a special options page and display checkboxes in articles to show the desired table. This way, making changes to the table will only need to be done in one place.
Use plugin ads. Automatically insert in all articles or in the desired heading, label, a particular record. Then you won't need to bypass all the articles and put in the shortcode.
For example, AdsPlace'r Pro. You can after the desired paragraph or, if you like, a shortcode with targeting functionality.
I think this is what you need: Shortcoder (https://wordpress.org/plugins/shortcoder/).
In the admin area do what you need, and then put the necessary shortcode on the pages, and if you want to change the text, etc., just change it in the admin area).
Thank you all very much for the advice. As it turned out to solve this situation can be solved in different ways, and through the advertising plugin and through the shortcodes plugin, different from what I found and through the plugin custom fields. It would have taken me more than a day to test and find a solution myself.
Thanks again!
Boost your website's search engine ranking with the comprehensive All in one SEO package.
This package offers a range of features, including automatic optimization of titles and meta tags, along with the ability to manually override them. It also automatically notifies search engines about any changes made to your site, and supports Google maps to speed up page loading on mobile devices.
Additionally, the package allows for the creation of an XML site map and supports Schema.org micro-markup, which helps search engines better understand the data presented on your site.
Whether you're a beginner or an experienced developer, this package is designed to work "out of the box" while also offering extensive customization options.
Updating the same content manually on each page can be a tedious and time-consuming process, especially when dealing with complex tables or frequently changing data.
The solution you're looking for is indeed using a plugin that allows you to store the data in the WordPress database and retrieve it using shortcodes. This approach not only saves you time but also ensures consistency across all pages where the shortcode is used.
While WordPress doesn't have a built-in feature for this, there are several plugins available that can help you achieve this functionality. Here are a few options I would recommend:
1. Toolset Types (https://toolset.com/): This is a powerful plugin that allows you to create custom post types and custom fields. You can store your table data as a custom post type, and then use a shortcode or a View (a feature within Toolset) to display the data on any page or post. Toolset Types is a premium plugin, but it offers a lot of flexibility and advanced features.
2. Advanced Custom Fields (ACF) (https://www.advancedcustomfields.com/): ACF is a popular free plugin that lets you create custom fields and manage custom data in WordPress. You can create a custom field group for your table data and then use a shortcode or PHP code to display the data anywhere on your site. ACF also offers a premium version with additional features.
3. Custom Post Type UI (https://wordpress.org/plugins/custom-post-type-ui/): This free plugin provides an easy-to-use interface for creating custom post types and custom taxonomies in WordPress. You can create a custom post type for your table data and then use a custom loop or shortcode to display the data on any page.
4. Custom Tables (https://wordpress.org/plugins/custom-tables/): As the name suggests, this free plugin is specifically designed for creating and managing custom tables in WordPress. You can create tables, add data, and then use shortcodes to display the tables on any page or post.
Regardless of the plugin you choose, the general approach would be:
1. Install and activate the plugin.
2. Create a custom post type or custom field group for your table data.
3. Input your table data into the custom post type or custom fields.
4. Use the provided shortcode or PHP code to display the table data on the desired pages.
By using this approach, you can manage your table data from a central location (the custom post type or custom fields) and easily update it across all pages where the shortcode is used.
It's worth noting that some of these plugins may require a bit of a learning curve, especially if you're not familiar with custom post types or custom fields in WordPress. However, they all provide detailed dоcumentation and support to help you get started.
Explore these plugins to streamline your task:
WP Table Manager: This plugin allows you to create and manage tables, then insert them using shortcodes. Changes made in the database will reflect across all pages. It's user-friendly and efficient for your needs.
Ultimate Posts: While primarily for displaying posts, it can also handle custom post types like your table data. It offers shortcodes and widgets for easy insertion. Plus, it's highly customizable.
Advanced Database Manager: This plugin provides a user-friendly interface to interact with your WordPress database directly. You can create, edit, and manage tables, then insert them using shortcodes. It's powerful but may have a steeper learning curve.