Include widget within newsletter template?

You may already know this, but you need to specify the widget’s class name as the $widget_name variable in the template tag. For example, Depending on the widget, you may also need to add parameters to the_widget() to get it to display properly — see notes on thewidget() $instance and $args in the codex. http://codex.wordpress.org/Function_Reference/the_widget … Read more

menu in different page in different style

you can use this, <?php if( is_front_page() ):?> <div class=”home-page-menu”> wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); </div> <?php elseif; ?> <div class=”inside-page-menu”> wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); </div> <?php endif; ?> Here, you should be change your CSS style for home-page-menu and inside-page-menu . for more … Read more

Widget which displays thumbnails, but links to urls?

You could create your own widget that queries posts from a certain category then displays the_post_thumbnail in an unordered list linking to the post. Example widget (add to functions.php): <?php class c3m_thumbnail_posts extends WP_Widget { function c3m_thumbnail_posts() { $widget_ops = array( ‘classname’ => ‘thumbnail-posts’, ‘description’ => ‘Displays post thumbnails’ ); $control_ops = array( ‘id_base’ => … Read more

Widget options – where to put them?

I have answered this myself by adding an options page and adding options to the database. The functions are add_option(‘yourpluginoption1′,’value’); add_option(‘yourpluginoption2′,’value’); add_action(‘admin_menu’, ‘yourplugin_menu_’); function yourplugin_menu_() { add_options_page(‘etc etc…

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