Tag Info

New answers tagged

0

This is a quite generic question, the answer is really dependent on what theme you're using. Because most themes work differently. However, regular posts does not support page templates by default. So instead you should create a new page, then select the full width template (if the theme has one). Then select your new page to be the posts page from ...


0

What would be wrong with this ? # you own everything chown -R [user].[user] * .htaccess # others and group may not write anywhere chmod -R og-w * # execute permissions on dirs only chmod -R a-x * chmod -R a+X * # webserver co-owns htaccess chgrp www-data .htaccess chmod a-wx .htaccess chmod u+w .htaccess # webserver co-owns wp-content and below chgrp -R ...


1

There are several sides to this. What it should be ideally, what is is practically, and what it usually has to be practically. There are two contexts to the writing files in WordPress. Just do it with PHP The locked down hardest scenario here is that only uploads is writable. Otherwise core functionality will start to break down. However plugins might ...


0

Download and install a full copy of Wordpress to a sub-directory on your site. Having it in a sub-directory won't interfere with any of your static pages in the root directory, or elsewhere on the site. The sub-directory for Wordpress can be named whatever you like; you don't have to name it /blog.


0

That's going to require a plugin. Best to roll your own as I couldn't find an existing plugin for it that was up to date. Here's the out of date one I found as it might help to look over its code when building your own: https://wordpress.org/plugins/multiple-approvals/


0

Well if you are trying to replace width="" where "" means empty, you do not need to use "*" when using str_replace, as str_replace do not support regular expression. In that case you function will be as : function replace_content_on_the_fly($text){ $replace = array( // 'words to find' => 'replace with this' 'width=""' => ...



Top 50 recent answers are included