Removing Listing Type from the Front-end

If you don’t want to use Listing – Default Directory Type, please follow this tutorial to know how We can remove it:

  1. Make sure that Child Theme is installed https://documentation.wilcity.com/knowledgebase/how-can-i-setup-wilcity-child-theme/
  2. Open to functions.php file (You can access to your Child Theme by using FileZilla and open the function file with some editors like Sublime text, Notepad++)
  3. Put the following code to this function (After <?php syntax)
add_filter('wilcity/filter/directory-types', function($aPostTypes) {
    unset($aPostTypes['listing']);
    return $aPostTypes;
});

Leave A Comment?