Changing the homepage

To change the site Front Page to be a static Page: Go to Dashboard -> Settings -> Reading Change Front page displays from Your latest posts to A static page In the dropdown beneath this option, select the static Page to use as your Front Page. If you want to display your blog Posts somewhere, … Read more

Landing / Static HTML page

Just name the landing page file index.html and place it (and any assets) in the root directory, then add this to your .htaccess (assuming you’re using Apache): DirectoryIndex index.html index.php When accessing http://example.com, Apache will serve index.html. WordPress will scoop up all other requests with it’s rewrite rules.

If its not frontpage

You have the WordPress function is_front_page() that you need to invert with “!” . if(!is_front_page() && in_category( array(10,11,12,13,14,15,18,19,20) ))

How to use custom Html file instead of wordpress homepage

I strongly advise you to heed the advice already given. If your PHP is well structured and you take advantage of caching methods, it won’t have a significant increase on your page load time. We’ve got pages with extremely complex queries that are hardly optimized, but using some clever caching methods, we’re able to get … Read more

Show two different sized featured images on homepage

With get_post_thumbnail() you have the ability to insert a featured image in your theme. the_post_thumbnail( $size, $attr ); holds to parameter 1. The size of your image and the ID. If you would like to have 2 image sizes of featured images on your home page you could do it like this: if(is_front_page(){ // only … Read more

View homepage in a preview mode

I think you can set your post to private to view it privately on the homepage. Once you change the visibility to private, the post or page status changes to “Privately Published” as shown. Private posts are automatically published but not visible to anyone but those with the appropriate permission levels (Editor or Administrator). See … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)