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

6

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

One of the fields is the Price List.

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

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

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

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

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

Thanks!

    
asked by anonymous 28.01.2015 / 16:22

2 answers

1

Good afternoon Tiago,

You can use a plugin called TablePress, available at that URL ( link )

This plugin you 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 that contain this table will be updated.

I think that's it.

Success ae.

    
31.01.2015 / 19:10
0

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

Read more about it at documentation .

    
13.05.2015 / 21:30