

The wide rates box with the 30-year and 15-year fixed averages.
Mortgage Rates adds a compact box of current US mortgage rates to your WordPress site. It lists the average 30-year fixed, 15-year fixed and 5/1 ARM rates with the change since the previous week, and a “View Trend” link to the full rates page. It is meant for mortgage officers, real-estate agents and finance or home-buying blogs that want fresh rate content for their readers without updating it by hand. Add it as a Gutenberg block, a sidebar widget or the [mlrates] shortcode.
The widget shows the weekly U.S. average rates (Freddie Mac Primary Mortgage Market Survey) published by mlcalc.com. Your site fetches them as data and caches them; all of the widget’s code ships with the plugin.
[mlrates] shortcode or a template functionIn the block editor, click the “+” button, search for “Mortgage Rates” and add the block; the sidebar lets you set the state label and the size.
Or add the shortcode to a page or post:
[mlrates]
Set the form size or the state label:
[mlrates state="NY" size="narrow"]
You can also add the “Mortgage Rates” widget under Appearance > Widgets, or call <?php display_mlcalc_rates(); ?> from a theme template.
Mortgage officers, real-estate agents, home-buying and personal-finance blogs.
The rates are national averages for information only. They are not your lender’s rates and not an offer.
This plugin gets the current mortgage rates from mlcalc.com (operated by ARSIDIAN LLC). Your WordPress server requests https://www.mlcalc.com/mortgage-rates/rates.json when the widget is shown and the cached copy is older than six hours (or an hour after a failed request). The request is made by your server, not by visitors’ browsers, and sends no data about your site’s visitors; mlcalc.com sees only your server’s IP address and the standard request headers WordPress sends. The response contains only the rates and their date, which are stored in your database so the widget keeps working if mlcalc.com cannot be reached.
When a visitor clicks “View Trend”, the mlcalc.com mortgage rates page (https://www.mlcalc.com/mortgage-rates/) opens in a new tab; nothing is sent unless the visitor clicks.