WP Theme : YDKM

YDKM Downloads: 309 times

WP Theme : Soul Cube

Soul Cube Downloads: 305 times

WP Template Tags : get_links & get_links_list

Comparison between Get_links and Get_links_list tags

So definition wise..

get_links() will show all of the links as one list with no titles and no category specific options set by users.

get_links_list() will show all links nested in titles and category options all set by wordpress user.

So which one is better than other?

well, I can’t decide that for you. Its your call. Both are after all doing the same work. getting you the list of links in your blog page.

If you are a novice user of wordpress, or you want to just show the links and not care about the options set in the wp-admin, then get_links() is what you should use.
It gells well with any layout of any design. For the people who are new to wordpress, and do not really know much about wordpress codes and what results they bring to you, get_links() is the one which is easy to customise and work with.

So if you have in your sidebar.php file, you have codes placed like this..

<ul>
<h2>Blogroll</h2>
<?php get_links(); ?>
</ul>

After being excuted, this tag will show something like this…
which means all the links are insite the Unordered List but not as list items.
<ul>
<h2>Blogroll</h2>
<a href=”#”>Item 1</a><br/>
<a href=”#”>Item 2</a><br/>
<a href=”#”>Item 3</a><br/>
<a href=”#”>Item 4</a><br/>
</ul>

Now if your style.css file has styling options for listed items, like special bullets and all, you can use a modified get_links() code to show the links in list as link items.

<ul>
<h2>Blogroll</h2>
<?php get_links(’-1′, ‘<li>’, ‘</li>’, ”, 0, ‘name’, 0, 0, -1, 0); ?>
</ul>

So after being executed, all the links are sorted by name and put as links items.
which will result in something like this..

<ul>
<h2>Blogroll</h2>
<li><a href=”#”>Item 1</a></li>
<li><a href=”#”>Item 2</a></li>
<li><a href=”#”>Item 3</a></li>
<li><a href=”#”>Item 4</a></li>
</ul>

After all, both the wordpress codes get_links and get_links_list shows the same thing in different ways. if u choose get_links_list() in ur codes like this..

<ul>
<?php get_links_list() ?>
</ul>

it will show something like..

<ul>
<li>
<h2>Blogroll</h2>
<ul>
<li><a href=”#”>Item 1</a></li>
<li><a href=”#”>Item 2</a></li>
</ul>
<h2>Etc</h2>
<ul>
<li><a href=”#”>Item 3</a></li>
<li><a href=”#”>Item 4</a></li>
</ul>
</li>
</ul>

which works well too. But if you have style defined in your style sheet for first level Unordered lists, and not for the nested lists then it will disrupt your layout.

I personally use get_links() cause its easy to use and modify as my wishes, rather than doing much changes in the style sheet.

But again, Its your choice after all what tag you want to use in your template.

Links Manager Tags List:

  • get_links_list
  • wp_get_links
  • get_links
  • wp_list_bookmarks (Version 2.1)
  • wp_get_linksbyname (Deprecated in 2.1)
  • get_linksbyname (Deprecated in 2.1)

With online backup you can create any kind of database. But to make it fast in download and uploading of data you can use wireless internet. You can get to know about more hosting services through webhosting review. Whenever you go for domain registration you can check for whole packages. Many companies provide you backup software with service. For setting up an internet phones website you must need to have a best domain host.

WP Theme : Goan Beach

Goan beach Downloads: 296 times

WP Theme : WP-Matrix

wp MAtrix Downloads: 360 times

Most Downloaded Themes

International Profit Associates (IPA-IBA) is a U.S. leader in business development and management consulting services for small and medium-size companies.

Integrated Business Analysis , an International Profit Associates (IPA-IBA) alliance, takes a proactive approach to solving complex business issues. From the analysis to an expeditious problem resolution.

Browse Themes By Category

If you're looking for a credit card, your first stop is the Fool's Credit Card Comparison Centre. We've got all the information you need to compare credit cards and find top deals on the best credit cards.

ad ad