這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Wp Vue

描述

WP Vue plugin will provide you the shortcode to show the Posts using the VUE JS. Page will shows as Single Page Application.

Major features in WP Vue include:

  1. Shows the Posts using Vue-JS

  2. Can limit the posts [ Else will take default value from Site Settings ]

  3. Shows the Pagination

  4. Single Page Appplication

  5. Do Not reload the page.

Shortcode & Attributes

With all default values

[wp-vue-posts]

With Post Per Page Option

[wp-vue-posts posts_per_page=”20″]

With Offset Option

[wp-vue-posts posts_per_page=”20″ offset=”10″]

With Order Option

[wp-vue-posts posts_per_page=”20″ offset=”10″ order=”desc”]
Order Options : “desc” for descending, “asc” for ascending

With Order By Option

[wp-vue-posts posts_per_page=”20″ offset=”10″ order=”desc” orderby=”date”]
Order By Options : “id” is deafult value, other valid values are “date”, “relevance”, “include”, “title”, and “slug”

Files

  1. wp-vue.php : File to start working on
  2. wp-vue-template.php : Template file showing the value fetched using Vue
  3. main.js : Main JavaScript file to create a fetch request to the Post API endpoint to get the posts.

螢幕截圖

  • Screenshot : Shortcode.

安裝

This section describes how to install the plugin and get it working.

  1. Go to WordPress Dashboard > Plugins > click on Installed plugins > look for add new at the top most of the screen and click here > Add Plugins > upload plugin > choose file -> click here and upload Simple Demo Importer plugin.

  2. Activate Plugin through ‘Plugins’ menu in WordPress.

  3. You can start using the Shortcode with all the possible attributes. Happy Vuing

常見問題

  1. How to create a New Request?

Answer : Need to create a method in main.js follwoing the VUE JS structure, and call into the template file.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Wp Vue” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Wp Vue 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

Intial Commit.