Tag Info

Hot answers tagged

3

You can disable certain themes in your WordPress network. Go to http://www.yournetwork.com/wp-admin/network/themes.php click on 'network disable' to hide the themes for the other websites. You can enable a theme for a single site by searching for the site -> click on 'themes' -> click enable at the desired theme. Hope this helps.


2

There are no methods the_content() or the_title() of your query object. These: $review_query->the_content(); $review_query->the_title(); should just be the_content(); the_title(); If you had debugging enabled you would see an error informing you of this.


2

First check that there isn't a page set as a front page in "Reading Setting". If that is set, index.php is not used as the home page, but the template of the page you set as front page. In that case, you need to find that template and add you conditional is there. <?php if(is_user_logged_in()) { get_header(); ?> <div id="primary" ...


1

You might wanna take a look at this: https://codex.wordpress.org/Template_Hierarchy Your index.php is typically the last file that Wordpress will look for when loading any page. In the case of the homepage, it will first look for front-page.php then home.php (if your home page is set to show latest posts, and not a static page). If you're changing the ...


1

I wouldn't use custom page templates merely for changing the layout of the blog posts index. Using page templates for the blog posts index bypasses the core handling for display of the blog posts index (which per the template hierarchy uses either home.php or index.php to render). Edit I never...said that I want to change layout of the blog posts ...


1

Edited Answer: TMG is a very popular auto plugin installer for WordPress and a lot of Premium theme author use it. You can get the php class here https://github.com/thomasgriffin/TGM-Plugin-Activation. Also when you will download it you will get a php file named example.php. You just have to include that example.php file in your function.php file and you ...



Only top voted, non community-wiki answers of a minimum length are eligible