Instructions/Rules Inside Text Area

Add some custom javascript to the admin area, using wp_enqueue_script(). $(document).ready(function() { $(‘#input-id’).attr(‘placeholder’, ‘Did you try Google first?’); }); The placeholder attribute does not work in Internet Explorer yet. You could fall back on a jQuery placeholder plugin if needed.

Post specific text based on category displayed

The easiest way to do it is to use a category template and let WordPress step through its template hierarchy and display the News template when it is called. So you would copy your theme’s category.php to category-news.php (assuming the slug is “news”) and then edit that file to place whatever text you want where … Read more

Add description to custom text widget and display the 5 recent post titles

You are not passing your description correctly. Really, you aren’t passing it at all. public function __construct() { parent::WP_Widget(false, $name=”Kevins Textbox”); array(‘description’ => __(‘A text widget created by Kevin Ullyott for practice in creating widgets’) ); } That ‘description’ line is creating an array but you aren’t doing anything with it. It is just floating … Read more

content gets scrambled

This is because the images are defined as floating to the left. To solve this, you can add a clear: both to the <h4> elements (it probably won’t hurt to do this in the stylesheet – will there be a situation where you need a title that exists next to a float?).

Escaping Quotes

WordPress emulates magic_quotes_gpc and won’t be deprecating this for some time due to concerns over plugin security and backward compatibility. To work around this, you need to use stripslashes() or, if you need to strip slashes when data arrives via $_POST, $_GET, $_COOKIE, and $_REQUEST arrays, you can use the WordPress stripslashes_deep() function: http://codex.wordpress.org/Function_Reference/stripslashes_deep

How to copy/paste web content with photos into my blog

A little tip a lot of people don’t know about. You can copy/paste an image url into the upload field and it will be auto uploaded into your blog. Right click the image you want to save and select copy image URL (chrome) In your blog click Add Image–> Select Files ( from computer)–>paste url … Read more

string translation in functions.php not working

The code you have is correct and will handle the wording even if the case does not match. Your problem is probably that wherever Place Name is being output, it is not being passed through a WordPress translation function, __( ‘Place Name’ ) or _e( ‘Place Name’ ); Either that, or what you’re trying to … Read more

Remove text tab

This requires two steps: 1) First, we need to hide the editor tabs, which can be accomplished easily enough using CSS. We’ll output some CSS to the admin head to do that: function hide_editor_tabs() { global $pagenow; // Only output the CSS if we’re on the edit post or add new post screens. if ( … Read more

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