How to list Tags using get_tags in an html table?

This is what I tried and it works well. I am using array_chunk, but I’m also adding a check to see if a chunk has less than 4 values (as you want 4 columns), then just add a blank <td>, which will avoid the mark up from breaking. <?php $tags = get_tags(array(‘hide_empty’ => false)); $tag_groups … Read more

allow html characters on eshop data entry boxes

Reading a little… (cause that is the problem, we don’t read) I found the solution for my problem, “htmlspecialchars_decode” function would do the trick, now I wonder how to close or erase a post in here ^^. <?php if (isset($eshop_product[‘details’])) echo htmlspecialchars_decode($eshop_product[‘details’]); ?>

Save Option on Database

<?php add_option( $option, $value, $deprecated, $autoload ); ?> http://codex.wordpress.org/Function_Reference/add_option global $options; ?> <form action=”options.php” method=”post”> <?php $settings = get_option(‘options’); ?> <?php settings_fields(‘theme_options’); ?> <fieldset> <legend>Counter Position:</legend> </br> <p> Right <input type=”radio” name=”position” value=”right”/> <p> Left <input type=”radio” name=”position” value=”left”/> <p> Center <input type=”radio” name=”position” value=”center”/> </fieldset> </form> <?php function r_set() { register_setting(‘theme_options’, ‘options’, ‘validate_options’); } … Read more

Language selection for blog doesn’t exist?

Well, thanks to a suggestion from one of my mates I resolved the more critical problem (2) of the Hebrew text displaying in gibberish. All I needed to do was to re-encode the files as UTF-8 without BOM (they were encoded as UTF-8 (plain)). I re-uploaded these files to the server and Voila, everything was … Read more

change the icon of a custom post type in WordPress to use twitter boostrap

I always like using this tutorial which would give you this code. <?php add_action( ‘admin_head’, ‘cpt_icons’ ); function cpt_icons() { ?> <style type=”text/css” media=”screen”> #menu-posts-POSTTYPE .wp-menu-image { background: url(<?php bloginfo(‘template_url’) ?>/images/YOURIMAGE.png) no-repeat 6px -17px !important; } #menu-posts-POSTTYPE:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image { background-position:6px 7px!important; } </style> <?php } ?>

Display wordpress post to static website in the footer

EDIT After a brief chat with Original Poster, the following solution works: Install the Magpie RSS library. Create a folder in the root directory of raminusa.com, name it magpierss Upload 4 files (*rss_fetch.inc*, *rss_parser.inc*, *rss_cache.inc*, and *rss_utils.inc*), and the directory extlib to this new folder In the footer script of raminusa.com (which should be in … Read more