Create HTML Blocks in Wordpress and call them in the Post or Page

Asked

Viewed 598 times

6

We have a real estate website where we use ACF (Advanced Custom Fields) to better manage real estate pages.

One of the fields is the Price Chart.

A price list of a condominium serves for several pages of properties of the same condominium, consequently, when there is a change in value or availability, we must change the table in all properties of this condominium.

I was thinking of creating HTML BLOCKS (in case it would be the tables) and then calling them on the pages.

For example: in the 10 pages of the TEST enterprise I want to call the "TABLE OF PRICES OF THE TEST ENTERPRISE".

This table would be a block created (same idea as a text/html widget).

Does anyone know anything ready, or have any idea how to do it?

Valeuuu!

2 answers

1

Boa Tarde Tiago,

You can use a plugin called Tablepress, available at this URL (https://wordpress.org/plugins/tablepress/)

This plugin will create the tables and then with a shortcode, will insert the table in the posts you want. When you update a table, automatically, all posts containing this table will be updated.

I guess that’s it.

Success ae.

0

If you are using ACF, you can use the method get_field() of itself, wherever you wish to display the value.

Read more about him at documentation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.