[resolved] Consider adding an option to disable archive display in the front end (2 posts)

  1. Matthew Eppelsheimer
    Posted 3 years ago #

    Frank, have you considered exposing an option to disable front-end display? The use case is for using the plugin to shelve old content without deleting it, so that it can be restored if necessary, but definitely hiding it from public view. We're currently accomplishing this via the function below in a custom site plugin, which feels a bit hacky.

    /* Disable Archived posts from being visible in the front end */
    function rli_hide_archiv_posts() {
    	global $wp_post_types;
    	$archiv = &$wp_post_types['archiv'];
    	$archiv->publicly_queryable = 0;
    	$archiv->has_archive = 0;
    add_action( 'init', 'rli_hide_archiv_posts', 100 );


  2. Frank Bueltge
    Plugin Author

    Posted 3 years ago #

    No, it is also in the ideas of the plugin.
    But currently I don't have options on the plugin, that is the point for open parts of the plugin. Maybe you will also dev on the plugin, it is a open repo on github and maybe I like your code and I will add you to the dev team. If you interest, we can speak about the goals and my requirements for a fine source.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Archive
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic