You can include flexmls IDX widgets in your blog posts or pages by using what are called short codes. Short codes are bracketed text that tells WordPress to display one of the flexmls IDX widgets. We’ve tried to make inserting these short codes easy by including a short code generator in the Visual editor included in WordPress for pages and posts. When on the Visual editor tab, you will see an icon with the flexmls logo that, when clicked, will open the short code generator.
You use the short code generator as you are writing your blog post or creating a page. For example, if you’re writing a market analysis, you can insert a market stats graph in the post
- Make sure the cursor is placed in the page where you want the widget to be inserted.
- Click on the flexmls IDX icon;
- Select the widget you want and complete the form for that widget; and
- Click the Insert Widget button.
A short code will then be inserted where you had your cursor in the post or page.
An example short code looks like this:
[market_stats title="Home Price Trends" width="400" height="300" type="price" display="SoldMedianListPrice,SoldMedianSoldPrice" property_type="A"]
Now that you have the short code entered in your post, you can edit it by changing the values to what you want or you can delete the entire short code and use the short code generator to create a new one with different settings.