Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Quick Tip: Using the WordPress wp_tag_cloud() Function the Right Way
- source link: http://code.tutsplus.com/articles/quick-tip-using-the-wordpress-wp_tag_cloud-function-the-right-way--wp-26334
- // functions.php
- function my_cloud($echo = false) {
- if (function_exists('wp_tag_cloud'))
- return wp_tag_cloud();
- }
- ***************************************************
- // where you want to use / show /display in your template
- <div class="mycloud">
- <?php echo '<h3>Popular Tags</h3>'; my_cloud();?>
- </div>
- ************************************************************
- // css for style
- .mycloud a {
- background: #FFC414;
- color: #0000FF;
- display: inline-block;
- margin: 0 4px 8px 0;
- padding: 2px 10px;
- -webkit-border-radius: 20px;
- -moz-border-radius: 20px;
- border-radius: 20px;
- font-size: 10px;
- }
- .mycloud h3 {
- font-style: italic;
- font-weight: bold;
- font-size: 30px;
- color: #FF00FF;
- font-family: Comic Sans;
- }
- **********************************************************************************
- // for more example visit
- // Quick Tip: Using the WordPress wp_tag_cloud() Function the Right Way
- source link: http://code.tutsplus.com/articles/quick-tip-using-the-wordpress-wp_tag_cloud-function-the-right-way--wp-26334
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement