How to set post expiration date and time and move the page to archive after expiration [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago. My requirement is to move the certain posts … Read more

Exclude file from theme editor

Is possible to exclude some files from being viewed and modified in the theme editor? 1 Answer 1 In general I wouldn’t recommend editing files that way and just disable it with the well known DISALLOW_FILE_EDIT or DISALLOW_FILE_MODS constants, that are checked within the map_meta_cap() function. But anyway it’s interesting to see if we can … Read more

How to exclude a directory from WordPress permalinks in a Multisite environment?

The scenario is as follows: A multisite install with three sites: site1.com (admin) site2.com site3.com Q: How to exclude a folder located in the root directory, which should also be associated with site3.com? That is: exclude a particular directory that does not belong to WordPress so that it is accessible from: site3.com/folderToExclude/ Back in the … Read more

Exclude subfolder from WP-redirect works with html but not php files

I want a certain subfolder excluded from being handled by WP with its 404 – page not found message. My problem is: example.com/Non_WP/myfile.html – shows correctly but example.com/Non_WP/myfile.php – will trigger a WP 404-page not found message. Both files, myfile.html and myfile.php exist in the Non_WP folder. My .htaccess file looks like this: # BEGIN … Read more

Exclude the parent custom post-type posts only

Not sure if this is possible without some form of hard-coding but I have a custom post-type called ‘city’. Within the ‘city’ post-type I have some parent post (e.g. England, America and China) and some child posts (London, Washington DC and Beijing). I have a query that displays all of the posts under ‘city’. But … Read more