Title: Mortgage Rates
Author: Mortgage Calculator
Published: <strong>26. Januar 2010</strong>
Last modified: 27. Oktober 2026

---

Plugins suchen

![](https://ps.w.org/mortgage-rates/assets/banner-772x250.png?rev=3763071)

![](https://ps.w.org/mortgage-rates/assets/icon-256x256.png?rev=3763071)

# Mortgage Rates

 Von [Mortgage Calculator](https://profiles.wordpress.org/mlcalc/)

[Herunterladen](https://downloads.wordpress.org/plugin/mortgage-rates.1.4.1.zip)

 * [Details](https://de.wordpress.org/plugins/mortgage-rates/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/mortgage-rates/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/mortgage-rates/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/mortgage-rates/#developers)

 [Support](https://wordpress.org/support/plugin/mortgage-rates/)

## Beschreibung

[Mortgage Rates](https://www.mlcalc.com/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](https://www.mlcalc.com/mortgage-rates/). Your 
site fetches them as data and caches them; all of the widget’s code ships with the
plugin.

#### Features

 * Current average 30-year fixed, 15-year fixed and 5/1 ARM mortgage rates
 * Weekly change shown next to each rate
 * Updates automatically: your server refreshes the data at most every six hours
   and keeps the last good copy if the source is unreachable
 * Gutenberg block „Mortgage Rates“ with a live preview, sidebar widget, `[mlrates]`
   shortcode or a template function
 * Wide (300px) or narrow form
 * „View Trend“ link that opens the full mortgage rates page on mlcalc.com in a 
   new tab
 * No API key or account needed

#### How to use

In 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.

#### Shortcode parameters

 * size = wide | narrow
 * state = a US state code, for example NY. It sets the name shown in the widget
   heading and the state rates page the heading links to. The rate values shown 
   are the U.S. averages.

#### Who it is for

Mortgage officers, real-estate agents, home-buying and personal-finance blogs.

#### Please note

The rates are national averages for information only. They are not your lender’s
rates and not an offer.

### External services

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.

 * Service: https://www.mlcalc.com/mortgage-rates/
 * Terms of use: https://www.mlcalc.com/terms.htm
 * Privacy policy: https://www.mlcalc.com/privacy.htm

### Mortgage Rates Screenshots

 1. The Mortgage Rates front-end, as it appears in your WordPress Sidebar.
 2. The Trend Chart and Detailed Rates, as it appears when a visitor clicks the View
    Trend anchor.
 3. The Mortgage Rates widget configuration dialog, as it appears within WordPress 
    Administration Interface.

## Screenshots

[⌊The wide rates box with the 30-year and 15-year fixed averages.⌉⌊The wide rates
box with the 30-year and 15-year fixed averages.⌉[

The wide rates box with the 30-year and 15-year fixed averages.

[⌊The narrow version of the rates box, with a state name in the heading.⌉⌊The narrow
version of the rates box, with a state name in the heading.⌉[

The narrow version of the rates box, with a state name in the heading.

[⌊The Mortgage Rates block in the block editor, with the state and form size settings
in the sidebar.⌉⌊The Mortgage Rates block in the block editor, with the state and
form size settings in the sidebar.⌉[

The Mortgage Rates block in the block editor, with the state and form size settings
in the sidebar.

## Blöcke

Dieses Plugin bietet 1 Block.

 *   Mortgage Rates Current US average mortgage rates: 30-year fixed, 15-year fixed
   and 5/1 ARM with the weekly change.

## Installation

 1. Upload the `mortgage-rates` directory (including all files within) to the `/wp-
    content/plugins/` directory.
 2. Activate the plugin through the ‚Plugins‘ menu in WordPress.

The Mortgage Rates plugin can be used in one of two ways: if you are using widgets,
just add the plugin to the sidebar through the `Appearance -> Widgets` menu in WordPress.
If you aren’t using widgets, add the following code: `<?php display_mlcalc_rates();?
>` to your template where you would like the rates box to appear.

#### Usage

 * If you are using widgets, just add the Mortgage Rates plugin to the sidebar through
   the `Appearance -> Widgets` menu in WordPress.
 * Add the following code: `<?php display_mlcalc_rates(); ?>` to your template where
   you would like the calculator form to appear.
 * Add the shortcode `[mlrates]` to your page or post and configure default parameters.

#### Shortcode parameters

 * size = wide | narrow
 * state = any US state here

#### Shortcode examples

    ```
    [mlrates]
    [mlrates state="NY" size="narrow"]
    ```

## FAQ

### How do I add the rates to a page?

In the block editor add the „Mortgage Rates“ block. In the classic editor or a Shortcode
block use `[mlrates]` (or `[mlrates state="NY" size="narrow"]`). In a sidebar use
the „Mortgage Rates“ widget.

### Where do the rates come from?

The weekly U.S. average rates (Freddie Mac Primary Mortgage Market Survey) as published
by mlcalc.com. Your WordPress server downloads them from https://www.mlcalc.com/
mortgage-rates/rates.json and stores them in your database.

### How often are they updated?

The source is updated weekly. Your site checks for new data when the widget is shown
and its cached copy is older than six hours (or an hour after a failed request).

### Are these my lender’s rates?

No. They are national average rates from a weekly survey. They are for general information
and are not an offer or a quote.

### Can I show rates for a single state?

Not as separate numbers: the values are always the U.S. averages. The `state` attribute
only changes the state name in the heading and the state rates page the heading 
links to on mlcalc.com.

### Can I put it in a sidebar and in a post?

Yes. Use the widget in a sidebar or widget area and the `[mlrates]` shortcode in
posts and pages.

### Does the plugin send my visitors‘ data anywhere?

No. Rates are fetched by your server, not by visitors‘ browsers, and no data about
visitors is sent. See the External services section for details.

### May I use your widget on my commercial website

Yes. Absolutely.

## Rezensionen

![](https://secure.gravatar.com/avatar/b267fc5d57658f99040aec0841f80a2a07efcb22ce3830eeb59acd3e3bf5ecd2?
s=60&d=retro&r=g)

### 󠀁[Best mortgage calculator](https://wordpress.org/support/topic/works-1197/)󠁿

 [Ethan O’Sullivan](https://profiles.wordpress.org/ethanosullivan/) 12. Februar 
2017

After testing multiple mortgage calculators on the WordPress repo, this is by far
the best one. I can insert the calculator anywhere using a shortcode and the setting
page provides many options.

![](https://secure.gravatar.com/avatar/cfe6de2ccab9f0c86f1067692120e434c8fda46d692d2d0ed7edb320a17f344f?
s=60&d=retro&r=g)

### 󠀁[Works but pretty basic](https://wordpress.org/support/topic/works-but-pretty-basic/)󠁿

 [fergmantn](https://profiles.wordpress.org/fergmantn/) 26. September 2016

Seems to be pulling the correct values from the documented page. However, I wish
there some more customization available.

 [ Alle 10 Rezensionen lesen ](https://wordpress.org/support/plugin/mortgage-rates/reviews/)

## Mitwirkende und Entwickler

„Mortgage Rates“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin
mitgewirkt:

Mitwirkende

 *   [ Mortgage Calculator ](https://profiles.wordpress.org/mlcalc/)

„Mortgage Rates“ wurde in 1 Sprache übersetzt. Danke an [die Übersetzer](https://translate.wordpress.org/projects/wp-plugins/mortgage-rates/contributors)
für ihre Mitwirkung.

[Übersetze „Mortgage Rates“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/mortgage-rates)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/mortgage-rates/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/mortgage-rates/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/mortgage-rates/)
per [RSS](https://plugins.trac.wordpress.org/log/mortgage-rates/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 1.4.1

 * Fix: the block editor preview showed „loading…“ instead of the rates.

#### 1.4.0

 * Gutenberg block „Mortgage Rates“ (state label and size, live preview).
 * Translation-ready: the widget labels, admin texts and block texts can be translated
   on translate.wordpress.org.
 * A review reminder in the admin after two weeks, dismissible.

#### 1.3.15

 * Security: widget settings are saved only on requests whose nonce WordPress has
   verified (closes a CSRF on the classic widgets screen).
 * Rates from mlcalc.com are checked for plausible, finite values and the response
   size is limited.

#### 1.3.14

 * Removed the unused jquery.pngFix.js file.

#### 1.3.13

 * Security: escape all output (widget title, state name, URLs and the form templates).
 * Security: saving the widget settings now requires the edit_theme_options capability(
   core verifies the widgets nonce), and whitelists the state and form size.
 * Shortcode attributes are sanitized instead of being extracted into variables.
 * No remote code: the widget script ships with the plugin and loads in the footer;
   the rates are fetched by your server from mlcalc.com as data (rates.json), cached
   for six hours, with the last good copy kept for outages. „View Trend“ opens the
   rates page in a new tab.
 * Deleting the plugin removes its settings and cached rates.
 * Documented the external service in readme.txt.

## Meta

 *  Version **1.4.1**
 *  Zuletzt aktualisiert **vor 2 Wochen**
 *  Aktive Installationen **300+**
 *  WordPress-Version ** 5.5 oder höher **
 *  Getestet bis **7.1.4**
 *  PHP-Version ** 7.0 oder höher **
 *  Sprachen
 * [English (US)](https://wordpress.org/plugins/mortgage-rates/) und [Russian](https://ru.wordpress.org/plugins/mortgage-rates/).
 *  [Übersetze in deine Sprache](https://translate.wordpress.org/projects/wp-plugins/mortgage-rates)
 * Schlagwörter
 * [mortgage](https://de.wordpress.org/plugins/tags/mortgage/)[mortgage rates](https://de.wordpress.org/plugins/tags/mortgage-rates/)
   [rates](https://de.wordpress.org/plugins/tags/rates/)[widget](https://de.wordpress.org/plugins/tags/widget/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/mortgage-rates/advanced/)

## Bewertungen

 4 von 5 Sternen.

 *  [  1 5-Sterne-Rezension     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=4)
 *  [  1 3-Sterne-Rezension     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=1)

[Deine Rezension](https://wordpress.org/support/plugin/mortgage-rates/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/mortgage-rates/reviews/)

## Mitwirkende

 *   [ Mortgage Calculator ](https://profiles.wordpress.org/mlcalc/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/mortgage-rates/)