Coder Social home page Coder Social logo

nekojonez / unlist-posts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brainstormforce/unlist-posts

0.0 0.0 0.0 147 KB

Hide post from displaying anywhere on the site, only access the post with a direct link to the post.

Home Page: https://wordpress.org/plugins/unlist-posts/

JavaScript 4.36% PHP 75.70% Shell 19.94%

unlist-posts's Introduction

Unlist Posts & Pages

Contributors: brainstormforce, Nikschavan
Donate link: https://www.paypal.me/BrainstormForce
Tags: post, unlist posts, hide posts,
Requires at least: 4.4
Tested up to: 5.7
Stable tag: 1.1.6 License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Unlist Posts from displaying anywhere on the site, only access the post with a direct link.

Description

Unlisted means your post/page will not come up in search results or on anywhere else on your site. Only those who have the link of the post can view it just like any normal post on the site.

The Post could still be seen by anyone, but only if they guess the link!

The plugin updates MySQL query directly in WP_Query class of WordPress to leave out the posts which are unlisted by the user. As this modifies the core WP_Query, this also works very well with all the plugins which pull out posts/pages from database by using WP_Query, For eg. Posts slider plugins, Advanced Posts in Ultimate Addon for Beaver Builder etc.

Supported & Actively Developed

Need help with something? Have an issue to report? Get in touch. with us on GitHub.

Limitations Of the Plugin

  • WP_Query has an a flag to 'Suppress' the filters. If any plugin is using this flag when querying the posts then the unlisted post will not be hidden in that plugin's output.
  • Similarly if any plugin is using a custom MySQL query, then the unlisted posts will not be hidden from it's output.

Installation

  1. Go to the Plugins menu and click Add New.
  2. Search for Unlist Posts.
  3. Click Install Now next to the Unlist Posts plugin.
  4. Activate the plugin.

Just select option "Unlist Post" in any post of any type and that post will be hidden from the whole site, it can be only accessed if you have the direct link to the post.

Changelog

1.1.6

  • Fix: Unlisted post visible in preview/next post links.

1.1.5

  • Fix: Compatibility with Yoast SEO's robots tags options. Robots tags from Unlist Posts will override tag changes from Yoast SEO.

1.1.4

  • Fix: Due to a bug unlisted posts were visible in the search results, which we have fixed now.

1.1.3

  • Deprecated: wp_no_robots() has been deprecated.
  • Security: Use escaping for displaying unlist post description.

1.1.2

  • Fix: Post metabox did not show the correct status if the post is unlisted or not in the classic editor.

1.1.1

  • Improvement: Added the WordPress 5.6 compatibilty.

1.1.0

  • New: Add post status filter to make it easier to find out the unlisted posts. (Props @matthewmcvickar #40)
  • Fix: Don't save post status for the revision posts.

1.0.4

  • Fix: unlist posts does not work in Ajax callbacks. (props @makovetskiy)

1.0.3

  • Fix: duplicate post ids being saved in the options array.

1.0.2

  • New - Exclude the posts from wp_list_pages()

1.0.1

  • New - Hide a page from search engines if it is unlisted.
  • New - Hide the post from comments query if it is unlisted.
  • Updated code architecture to be PHPCS compatible.

1.0.0

  • Initial Release.

unlist-posts's People

Contributors

abhijitnage123 avatar makovetskiy avatar matthewmcvickar avatar nikschavan avatar patilvikasj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.