where is images/image.jpg?

The plugin is search for an ‘images’ folder inside the current working directory. For example if you are in /blogs/, a file looking for images/image.jpg is actually looking for /blogs/images/image.jpg. This can obviously get very messy when re-writing URLs with stuff like /2010/03/blog-title so actually put an image in the specific location is impossible, you … Read more

Forcing absolute src links in the RSS feed

Relative URLs are considered bad practice in WP, because of such issues and that they can be much more complex to migrate. Basic approach to fixing this (not counting changing to absolute URLs everywhere) would be to filter the_content, while checking for is_feed(), and adjust links on the fly.

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 } ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)