Skip to content

Your first news list

github-actions[bot] edited this page Nov 18, 2026 · 1 revision

Your first news list

Written against v1.4.5.4.

At the end of this page, a page on your site shows the five newest headlines from another WordPress site, each linking to the article on that site.

You need the plugin active, and the address of a WordPress site whose REST API answers publicly. The examples use news.example.org; put the real address in its place.

  1. Check the source answers. Open https://news.example.org/wp-json/wp/v2/posts in a browser. You should see a JSON list of posts. If you see an error or a login page instead, the plugin will not be able to read that site either.

  2. Edit the page that should show the list, and add a Shortcode block (or type into the classic editor):

    [uamswp_news site="https://news.example.org/" output="headlines" count="5"]
    
  3. Preview the page. A bulleted list of five linked titles appears where the shortcode is, newest first.

  4. Publish the page.

Note: without output, the shortcode prints a JSON object in a <script> tag and nothing visible. Always set output for a list people will read.

Note: the plugin's stylesheet is loaded only when the shortcode is in the page's own content, so a shortcode placed in a widget or a template looks unstyled.

Going further

Clone this wiki locally