what is “theme_setup” method for?

Methods in 3rd party plugin and theme classes can be called whatever the author wants them to be called. theme_setup() doesn’t mean anything special, and doesn’t even necessarily mean the same thing in different plugins. And since it’s not a special method to WordPress, they’re never going to be called automatically by WordPress, so the … Read more

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