WordPress blog code format

You need to wrap your code in either code or pre tags. code is for when inline code in a sentence e.g. include(“hello.php”) whereas pre is for preformatted blocks of text e.g.: function hello_world(){ echo ‘hello world’; } For code highlighting etc, you’ll need to look for plugins. The easiest way of using these tags … Read more

Screen Options WordPress WYSIWYG

The content box is in a <div> with an ID of #postdivrich so you can hide it using CSS. Probably the easiest thing to do is to add a settings option to an existing page so you can turn it off or on. The post below covers that in detail: http://wpengineer.com/2139/adding-settings-to-an-existing-page-using-the-settings-api/ After you have the … Read more

Assign a category by user and customize the edit-tags.php?taxonomy=category page

This is how I did it : function if_restrict_categories($categories) { global $current_user; $a = get_cat_if_user($current_user->ID); $onPostPage = (strpos($_SERVER[‘PHP_SELF’], ‘edit-tags.php’)); if (is_admin() && $onPostPage && !current_user_can(‘level_10’)) { $size = count($categories); for ($i = 0; $i < $size; $i++) { if($categories[$i]->parent != $a && $categories[$i]->term_id != $a){ unset($categories[$i]); } } } return $categories; } add_filter(‘get_terms’, ‘if_restrict_categories’); And … Read more

Choose options via url

I think this Custom Field Template plugin will help you. Plugin site. Don’t worry about Chinese screenshots. If you set at least one Custom Field Template for one category, when creating post and check that category additional options will appear.

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