Sidebar not visible after changing to new domain

Don’t replace old url to new url in database file. wp-login.php can be used to (re-)set the URIs. Find this line: require( dirname(__FILE__) . ‘/wp-load.php’ ); and insert the following lines below: Do comment/remove these lines. (once the database is updated) update_option(‘siteurl’, ‘http://your.domain.name/’ ); update_option(‘home’, ‘http://your.domain.name/’ ); for more information http://codex.wordpress.org/Moving_WordPress

How do I display the next 3 posts in the sidebar?

$args = array( ‘numberposts’ => 3, ‘offset’ => 5 ); $posts = get_posts( $args ); foreach( $posts as $post ){ setup_postdata( $post ); [output the post here with the_title(), the_content(), etc] } If you search in the codex with ‘query posts’, you will find a lot.

how to list subpages in sidebar without widget

Simplest solution would be: <li><ul> <?php wp_list_pages(‘title_li=&child_of=”.$post->ID.”‘); ?> </ul></li> Use this code for more flexibility: <?php if ( is_page() ) { ?> <?php if($post->post_parent) $children = wp_list_pages(‘title_li=&child_of=”.$post->post_parent.”&echo=0’); else $children = wp_list_pages(‘title_li=&child_of=”.$post->ID.”&echo=0’); if ($children) { ?> <li> <h2> <?php $parent_title = get_the_title($post->post_parent); echo $parent_title; ?> </h2> <ul> <?php echo $children; ?> </ul> </li> <?php } } … Read more

Showing sidebar-2 on custom template page

you can put this code in your functions add_action( ‘init’, ‘register_my_menus’ ); function register_my_menus() { register_nav_menus( array( ‘menu-1’ => __( ‘Head’ ) ) ); } and this code, in the place you want your second menu <?php wp_nav_menu( array( ‘theme_location’ => ‘menu-1’ ) ); ?> and than, you can control your new menu, through the … Read more

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