Fixed home page

You can set static home page from Admin -> Settings -> Reading. Check WordPress codex page for more detailed information. http://codex.wordpress.org/Creating_a_Static_Front_Page

Contributors should only access home page

Yes this is possible. You can use the login_redirect filter to do this. Use the code below in your active theme’s functions.php file. function my_login_redirect( $redirect_to, $request, $user ) { //is there a user to check? global $user; if( isset( $user->roles ) && is_array( $user->roles ) ) { //check for contributors if( in_array( “contributor”, $user->roles … Read more

Making draft page as the main page

Go to the “Settings” menu Then to “Reading” Click the “A static page” radio button next to “Front Page Displays” And select your “page-5” in the dropdown next to “Front Page”. Make sure you have a blog page selected as well. (The image is from the Codex. The correct buttons are not clicked but that … Read more

Make Home page current if there are sub-menus

Typical menu structure with ‘Home’ item being a Custom Link and other menu items being pages: The ‘Home’ menu item must not point to a real page and should look like that: The ‘Home’ menu item stays the same, regardless of the choice you’ve made in Settings -> Reading -> Front page displays. Remove the … Read more

Working with WordPress theme

First check in your WordPress backend like 1) For Post: xyz.com.wp-admin/post-new.php post where if there is an option to select the template. If this option available then select the “Full Width Template” 2) For Page: xyz.com.wp-admin/wp-admin/post-new.php?post_type=page page where if there is an option to select the template. If this option available then select the “Full … Read more

I want to load a pre-built php page (and assocated scripts/styles/directories) as the front page. How do I go about this?

As shown in the template hierarchy image from the documentation, you can name your .php file as front-page.phpor home.php. By default, WordPress sets your site’s home page to display your latest blog posts. This page is called the blog posts index. You can also set your blog posts to display on a separate static page. … Read more

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