1.0
doc4design.com - BookMaster
13. July 2009 · Author: Dale Crum
0 Comments

BookMaster

BookMaster is our answer to what we feel is an odd issue with the WordPress wp_list_bookmarks tag. For those that have exercised the use of wp_list_bookmarks you are well aware that is not possible to use the bookmark category title alone without calling on the bookmarks themselves. This is, of course, with the exception of excluding all bookmark categories and this can be painful if there are a lot of them.

With the introduction of BookMaster we have solved this small issue. The concept is to allow for the use of the bookmark category title anywhere within a page or post template without being forced to list any of the bookmarks themselves. This presents the administrator with the option to alter the bookmark title from the bookmarks menu while simultaneously changing the bookmark title in the code itself and thusly killing two birds with one stone . Using this plugin will prevent the unnecessary need to alter core files and allow you to carry the plugin with you as WordPress continues to develop.

In the example below we are displaying only the title of bookmark category 3 within an h1 style tag. We can now alter this information from the bookmarks admin panel simply by changing the bookmark category name. Displaying directly below the title the bookmarks from Category 7 will print in an unordered list.

While not the most effective use of this plugin the example utilized below is for educational purposes.

Example

<php if (have_posts()) : while (have_posts()) : the_post();?>
 <h1><php wp_list_bookmaster('category=3'); ?></h1>
 <div id="links-container">
  <ul><php wp_list_bookmarks('title_li=&category=3') ?></ul>
 </div>
<php endwhile; endif; ?>

Installation

  1. Download the plugin and expand it.
  2. Copy the bookmaster folder into your plugins folder ( wp-content/plugins ).
  3. Log-in to the WordPress administration panel and visit the Plugins page.
  4. Locate the BookMaster plugin and click on the activate link.
  5. Insert the example code wherever you would like to show a bookmark category title.

Leave A Comment

Please wrap any code within the <code> tag to display properly

If you had to wear only one set of clothing to work everyday for the rest of your life, how much time would you spend considering what you are going to wear? You might take some time...

WordPress gives us so many options that it truly is amazing they have yet to declare themselves a Content Management System. Sometimes though we have to give the program a little nudge...

"The conscious and intelligent manipulation of the organized habits and opinions of the masses is an important element in democratic society... In almost every act of our daily lives,...

In this tutorial we will be covering a simple method of adding numbers to looped posts. An example usage of this technique is a search results page where the output may span multiple...

"I had this guy leave me a voice mail at work, so I called him at home, and then he emailed me to my BlackBerry, and so I texted to his cell, and then he emailed me to my home account,...