CHAPTER 17 CUSTOMIZING YOUR BLOG S (Web design rates) LAYOUT 485
CHAPTER 17 CUSTOMIZING YOUR BLOG S LAYOUT 485 Listing 17-16 shows the complete code for sidebar-c.php. As with the get_posts call, if you pass the variable containing the current category as a parameter to the function, the function will output a list of links from that category. Listing 17-16. Complete sidebar-c.php cat_ID; $posts = get_posts(’numberposts=10&category=’ . $cat); ?>
Although this function can take a long list of parameters specifying how many links are displayed, what information from each link is output, and so on, it is easier to use the Link Categories tab of the Links page, shown in Figure 17-23, to control the output. The values and options you set there are used by wp_get_links.
In case you need quality webspace to host and run your web applications, try our personal web hosting services.