how to add custom widget in wordpress theme
wordpress widget and sidebar is different things. Here in this article we will show you how to add custom widget in wordpress theme using your theme code.
From 3rd version wordpress introduced links template. Links is same important like archive page. code snippet for create links template page in wordpress.
Links template page concept is new in wordpress theme. From wordpress 3 version wordpress introduced the links.php template file in wordpress themes. Adding the links page to your wordpress site or blog is very good for seo.Links page is same important like archive page.
You can add your friends and good websites in links page. You should use the links page very carefully because this page is very important for SEO. Google and other search engine is always look for links page where you can put other network or friends sites.
Note: If you are wordpress developer then only use following code.
You need to create the links.php file in your wordpress theme folder. and put following code in that file.
<?php /* Template Name: Links */ ?> <?php get_header(); ?> <section id="primary"> <div id="content" role="main"> <div id="archives"> <?php the_post(); ?> <h1><?php the_title(); ?></h1> <h2>Friends Network </h2> <ul> <?php wp_list_bookmarks('title_li=&categorize=0'); ?> </ul> </div> </div><!-- #content --> </section><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
After that go to your wordpress admin panel and create the links.php with links page template.
Publish links page and add the links page in to your menu.
Here are some links which are helpful to you.
If you link this article then please add my site in your links page or blogroll. If you are having any issues or question about links template then please write to me on firstname.lastname@example.org.