WordPress Hide Posts

外掛說明

這個外掛能讓使用者在首頁、分類彙整頁面、搜尋結果頁面、標籤彙整頁面、作者頁面、RSS 資訊提供、REST API、文章導覽及核心程式內建的 [最新文章] 小工具中隱藏指定內容。

試用外掛功能

外掛功能

  • 使用者可以選取要在 WordPress 哪些彙整頁面、RSS 資訊提供及 REST API 中隱藏指定內容。
  • 使用者可以為任何自訂內容類型啟用隱藏內容的功能,並在任何彙整頁面隱藏這些自訂內容類型的內容。
  • 使用者可以在 WooCommerce 商店頁面隱藏商品分類中的商品,並隱藏由 WooCommerce REST API 擷取的商品。

螢幕擷圖

  • 外掛設定頁面

  • 新增/編輯內容畫面的內容隱藏選項

  • 內容清單的 [隱藏位置] 欄位

安裝方式

安裝及解除安裝非常簡單,網站管理員使用 WordPress 的自動安裝或依照下列說明手動安裝。

安裝

  1. 下載外掛安裝套件 ZIP 壓縮檔。
  2. 將外掛安裝套件 ZIP 壓縮檔解壓縮所得的 whp-hide-posts 資料夾上傳至網站的 wp-content/plugins 目錄。
  3. 前往網站管理後台的 [外掛] 頁面,然後啟用外掛。
  4. 前往 [設定]→[隱藏內容],為 [文章] 內容類型之外的內容類型啟用隱藏內容的功能。

解除安裝

  1. 前往網站管理後台的 [外掛] 頁面,停用外掛後點擊 [刪除]。

使用方式

這個外掛的使用方式非常簡單。啟用外掛後,前往 [設定]→[隱藏內容] 並選取要啟用內容隱藏功能的內容類型。請注意,這個外掛已對 [文章] 內容類型預設啟用內容隱藏功能。

如果需要其他協助,請聯絡外掛開發者 martin@martincv.com 以獲得進一步的相關資訊。

常見問題集

這個外掛為我節省了許多時間,如何贊助這個外掛?

感謝你的贊助意願,贊助的確能協助我持續改進外掛。進一步了贊助外掛的方式

如果要整合其他內容隱藏外掛的功能至 WordPress Hide Posts 中,是否可行?

可以,但這項需求無法免費提供。如有相關功能需求,請來信至 martin@martincv.com 以進一步聯絡,並留下想整合功能的外掛名稱。

使用者評論

2024 年 9 月 3 日
I made 20 something posts with lists of links by town/city. The links would then go off to the various towns and city pages. For some reason when I searched for a town in search the new alphabetical posts would show but not keeping any width settings unlike the other post listings. It broke the look of the page and the dreaded horizontal scrollbar appeared with a long horizontal list of the link text. I tried to fix it but could not so thought maybe I could hide those posts from the search results and went looking. As you will all know looking for plug ins is not an exciting journey so I was not thrilled. However I was lucky enough to find this plug in first search and it works EXACTLY as it says it does, which IME is weird for a plug in! So after simply checking a box my problem is solved and all the annoying posts are hidden from search. There are a tonne of other free options for the plug in but this is all I needed…for now:) Well done developer, your plug in is making a difference and is very cool!
2022 年 9 月 21 日
This plugin is great but can you add a feature that can enable us to unhide posts in bulk? instead of doing that one by one? Maybe from siteurl/wp-admin/edit.php Thanks.
2022 年 2 月 15 日 2 則留言
This plugin helped us in a big possible way. Thanks to developer. We have one small request. Can you implement a feature Post unhiding after specific time or date. That would be grateful.
2022 年 1 月 6 日 2 則留言
The plugin does exactly do what I was looking for the way I expected it to work without the need to configure anything. Thank you so much! If I wasn’t a software developer myself, I’d hire you! And I’d donate, but I couldn’t find any hint to the usual suspects …
閱讀全部 19 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WordPress Hide Posts〉的開發相關工作。

參與者

〈WordPress Hide Posts〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈WordPress Hide Posts〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

= 2.0.3
Release Date – 12 January 2024

  • Added support for Yoast Duplicate Post to clone the hidden flags over to the new copy

= 2.0.2
Release Date – 30 December 2024

  • Updated frontpage / homepage query condition

2.0.1

Release Date – 27 December 2024

  • Small updates on the displaying of the flags in admin.

2.0

Release Date – 27 December 2024

  • Added custom database table to hold the hide post flags.
  • All new Hide flags on posts will be saved in the new database table. A fallback to old data is also added in case the old data is not yet migrated to the new table.
  • Added option to migrate the old data from wp_postmeta table to the new table.

1.1.1

Release Date – 05 October 2022

  • Bug fix related to checkbox not checked when enabling Hide posts on signle post page.

1.1.0

Release Date – 02 September 2022

  • Added option to hide posts on the single post page. This option will hide posts shown in any widget, block (related posts, recent posts etc) on the single post page.

1.0.3

Release Date – 01 September 2022

  • Bug fix with conditional logic on when to modify meta query.

1.0.2

Release Date – 20 February 2022

  • Hide WooCommerce Product from REST API bug fix.

1.0.1

Release Date – 13 February 2022

  • Bug fix. Added check for enabled post type for REST API Hide.

1.0.0

Release Date – 07 February 2022

  • Code base optimized and refactored.
  • Added option to hide CPT on their own archive page.
  • Added option to hide any post type on archive page other than category, tag. Ex: Custom Taxonomy archive page.
  • Added option to hide posts in REST API calls.
  • Added option to hide Woocommerce Products in REST API calls.

0.5.4

Release Date – 26 December 2021

  • Added option to hide posts on the default WordPress Recent Posts Widget
    (NOTE: This option will not work on the Latest Posts Gutenberg block. The feature can be tracked here core.trac.wordpress.org/ticket/54580)
  • Added compatibility with Zeen Theme Load More functionality

0.5.3

Release Date – 15 August 2020

  • Fixed jQuery Migrate Helper warning showing in console

0.5.2

Release Date – 12 August 2020

  • Added option to select all hide options in post metabox
  • Add new column in posts list table that shows on which pages the post is hidden
  • Added option in Settigns -> Hide Posts to disable the showing of the said column

0.5.1

Release Date – 19 May 2020

  • Added option to hide posts default WordPress post navigation
  • Fix for hiding menu items bug

0.5.0

Release Date – 17 April 2020

  • Removed option to hide post from REST API added in version 0.4.3 due to conflict with Guttenberg save / update post.
    The conflict happens because Guttenberg is using the REST API to save post and load additional data the hide post on REST API was causing conficts with the data.

0.4.4

Release Date – 14 April 2020

  • Added option to hide post on date archive page

0.4.3

Release Date – 06 April 2020

  • Added option to hide posts from REST API all posts query: /wp-json/wp/v2/posts/
    Note: Single post entry in REST API remains available /wp-json/wp/v2/posts/[post_id]

0.4.2

Release Date – 13 February 2020

  • Bug fix

0.4.1

Release Date – 13 February 2020

  • Workaround added for issue showing warnings when is_front_page() function is called in pre_get_posts filter. This is related to wordpress core and can be tracked at #27015 and #21790

0.4.0

Release Date – 21 December 2019

  • Added option to hide posts on the blog page as selected in Settings -> Reading (Posts Page)

0.3.2

Release Date – 13 December 2019

  • Bug fix for checking if Woocommerce is active on mutlinetwork site

0.3.1

Release Date – 07 December 2019

  • Added option to hide posts in RSS Feed
  • Added options to hide Woocommece products on Store (Shop) page and on Product category pages

0.2.1

Release Date – 13 November 2019

  • Compatibility checkup with WordPress 5.3
  • Added option to enable the Hide Post functionality for additional post types (Check Settings -> Hide Posts)
  • Added uninstall.php file to clean up options and post meta added by the plugin

0.1.1

Release Date – 05 September 2019

  • Code and compatibility updates.
  • Added translateable strings.

0.0.1

Release Date – 11 October 2017

  • Public release of ‘WordPress Hide Posts’