Load all files from folder in theme – Security concerns?

Only so much security can be added at the php layer. To gain even more security, modify the .htaccess file, disabling directory browsing, disabling XML-RPC, and deny access to WP-specific files. <files .htaccess> Order allow,deny Deny from all </files> <files readme.html> Order allow,deny Deny from all </files> <files readme.txt> Order allow,deny Deny from all </files> … Read more

A problem with functions.php file on my WordPress site

You need to enable your debug log to know actual problem on your site. Enable Debug log from your site though below steps: Open wp-config.php from your WordPress setup. Add below lines define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, true ); And just refresh the page. Now you can see the error … Read more

Theme URLs problem

If you are on an “Author” page, and since you mentioned author.php it seems that you are, get_queried_object() will give you the author data, which it seems is what you want. Try: var_dump(get_queried_object()); I believe that is all the information you need.

Convert theme to be based on Bootstrap?

I have created at least two wordpress themes using Bootstrap 3. In fact, is not complicated at all. Besides the obvious, you need keep in mind three things to do: Enqueuing correctly both the bootstrap styles and scripts Set up an own “Walker Nav Menu” that override the default walker for create drop-down menus Change … Read more

Add a header widget to the twentyfourteen theme?

Each theme has different “Widget areas”, so if the theme you are using doesn’t have the one you would like, there are unfortunately not so many options. Or at least, not without editing the template files. I found this plugin: https://wordpress.org/plugins/custom-widget-area/ which seem to do what you need, although it hasnt been updated in a … Read more

Permalink remain the same on each page

Firstly, you should never use query_posts to construct custom queries. This is not just my emphasis, but the codex as well. The one big problem with query_posts is, it many circumstances, pagination fails Note: This function isn’t meant to be used by plugins or themes. As explained later, there are better, more performant options to … Read more