Linux 软件免费装
Banner图

REST API Post Embeds

开发者 jeherve
更新时间 2023年9月5日 15:09
PHP版本: 5.6 及以上
WordPress版本: 6.3

标签

posts embed shortcode jetpack api rest api wp api

下载

1.2 1.1 1.2.1 1.2.2 1.3 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.5.0 1.0

详情介绍:

This plugin allows you to use the jeherve_post_embed shortcode to embed posts from your site or others' anywhere on your site. When creating the shortcode, you can use any of the 20 shortcode parameters to make sure the embed will include the posts you want to display, and will look the way you want it to look. Important: You can only pull posts from 3 different types of sites: Questions, problems? Take a look at the Installation and FAQ tabs here. If that doesn't help, post in the support forums. Want to contribute with a patch? Join me on GitHub!

安装:

  1. Install the plugin either via the WordPress.org plugin directory, or by uploading the files to your server.
  2. Edit the post or page where you want to embed posts.
  3. Add the jeherve_post_embed shortcode.
  4. Boom! Done.
Shortcode parameters The jeherve_post_embed shortcode includes different parameters, listed below:

常见问题:

Can I insert the shortcode directly in my theme?

Yes, you can use the do_shortcode function to do so. You can read more about it here.

I get the following error instead of my post list: We cannot load blog data at this time.

See the instructions here.

Are there other ways for me to customize the post embed list?

Yes! The plugin includes quite a few filters you can use to customize the post list. You can browse the plugin's source code to find out more.

  • jeherve_post_embed_blog_id allows you to specify a custom blog ID or normalized Jetpack or WordPress.com site URL.
  • jeherve_post_embed_base_api_url allows you to specify another REST API URL where you'll get your posts from. It defaults to the WordPress.com REST API.
  • jeherve_post_embed_query_url allows you to change the final URL (including the options you've set in the shortcode parameters) used to query posts.
  • jeherve_post_embed_post_loop allows you to build your own post loop from the data you get from the API.
  • jeherve_post_embed_image_params allows you to specify custom Photon parameters applied to the Featured Images. It accepts an array of parameters. The accepted parameters are available here.
  • jeherve_post_embed_article_layout allows you to filter the layout of a single article in the list.
  • jeherve_post_embed_featured_image allows you to replace the Featured Image used for each post.
  • jeherve_post_embed_posts_cache allows you to control how long the post list is cached.
  • jeherve_post_embed_featured_cache allows you to control how long the featured images are cached.
  • jeherve_post_embed_term_cache allows you to control how long the terms are cached.

更新日志:

1.5.0 Release Date: March 15, 2021 1.4.1 Release Date: October 20, 2017 1.4.0 Release Date: November 17, 2016 1.3.3 Release Date: April 26, 2016 1.3.2 Release Date: March 14, 2016 1.3.1 Release Date: February 13, 2016 1.3 Release Date: February 3, 2016 1.2.2 Release Date: September 21, 2015 1.2.1 Release Date: August 26, 2015 1.2 Release Date: August 26, 2015 1.1 Releast Date: August 17, 2015 1.0 Release Date: August 14, 2015