Make text bigger  Make text smaller  Toggle background color  Bookmark/Share


CUSTOM POST TYPE AND PERMALINK

Since WordPress 3.0 we can make make make use of of of Custom Post Types as well as we can conclude your own sorts of calm – it’s some-more similar to pages than posts! Thereby we can make make make use of of of automatically a Permalink make up of your WordPress installation. That means, if we emanate a code brand new post type, we can make make make use of of of Permalinks.

But a Permalinks usually work if we reconstruct a Rewrite Rules of WordPress – that’s given most users primarily have problems with it. If we emanate a code brand new post sort we substantially get a 404 if we open this page given WordPress doesn’t know a URL-structure in your Permalinks given we didn’t emanate a Rewrite Rules again.

The easiest approach is to protected a Permalink make up in your settings again. Alternatively we can embody in your Plugin or Theme a duty flush_rewrite_rules(). This enables to emanate a Rewrite Rules again.


Related posts:


WP Engineer Favicon Thanks for subscribing a feed! Sponsor a WP Engineer Blog as well as get your code in front of multiform hundred users per day!
© WP Engineer Team, All rights indifferent (Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)

View post:
Custom Post Type as well as Permalink


Get Auto Caffeinated Content for Your WordPress Blog



WORDPRESS CHEAT SHEET WALLPAPER

A elementary desktop wallpaper inventory Basic Template Files, PHP Snippets for a Header, PHP Snippets for a Templates, Extra Stuff for WordPress, formed on WPCandy WordPress Help Sheet.

www.FeedBurner.com) WordPress cheat sheet wallpaper WordPress cheat sheet wallpaper

Read a original: 
WordPress lie piece wallpaper


Get Auto Caffeinated Content for Your WordPress Blog



PHP 4 AND MYSQL 4 END OF LIFE ANNOUNCEMENT

Our proceed with WordPress has regularly been to have it run on usual server configurations. We wish users to have coherence when selecting a horde for their changed content. Because of this strategy, WordPress runs flattering most anywhere. Web hosting platforms, however, shift over time, as well as we spasmodic have been means to reevaluate a little of a mandate for regulating WordPress. Now is a single of those times. You substantially guessed it from a pretension — we’re eventually ready to make known a finish of await for PHP 4 as well as MySQL 4!

First up, a proclamation that developers unequivocally caring about. WordPress 3.1, due in late 2010, will be a final chronicle of WordPress to await PHP 4.

For WordPress 3.2, due in a initial half of 2011, we will be raising a smallest compulsory PHP chronicle to 5.2. Why 5.2? Because that’s what a immeasurable infancy of WordPress users have been using, as well as it offers estimable improvements over progressing PHP 5 releases. It is additionally a smallest PHP chronicle that a Drupal as well as Joomla projects will be ancillary in their subsequent versions, both due out this year.

The numbers have been now, finally, strongly in preference of this move. Only around eleven percent of WordPress installs have been regulating on a PHP chronicle next 5.2. Many of them have been on hosts who await PHP 5.2 — users merely need to shift a sourroundings in their hosting carry out row to turn on it. We hold that commission will usually go down over a rest of a year as hosting providers comprehend that to await a newest versions of WordPress (or Drupal, or Joomla), they’re starting to have to lift a trigger.

In reduction sparkling news, we have been additionally starting to be dropping await for MySQL 4 after WordPress 3.1. Fewer than 6 percent of WordPress users have been regulating MySQL 4. The brand new compulsory MySQL chronicle for WordPress 3.2 will be 5.0.15.

WordPress users will not be means to ascent to WordPress 3.2 if their hosting sourroundings does not encounter these mandate (the built-in updater will forestall it). In sequence to establish that versions your horde provides, we’ve combined a Health Check plugin. You can download it manually, or make use of this handy plugin installation apparatus we churned up. Right now, Health Check will usually discuss it we if you’re ready for WordPress 3.2. In a destiny recover it will yield all sorts of utilitarian report about your server as well as your WordPress install, so cling to on to it!

In summary: WordPress 3.1, due in late 2010, will be a final chronicle of WordPress to await PHP 4 as well as MySQL 4. WordPress 3.2, due in a initial half of 2011, will need PHP 5.2 or higher, as well as MySQL 5.0.15 or higher. Install a Health Check plugin to see if you’re ready!

See a strange post:
PHP 4 as well as MySQL 4 End of Life Announcement


Get Auto Caffeinated Content for Your WordPress Blog



INDIVIDUAL DESIGN FOR ANY PAGE

The blog has a Theme as good as for any page an additional character sheet. This stream direction of individuality for any calm is really usual today. Even with WordPress, we can do so; there have been multiform possibilities. One probability is to create, formed on a title, a particular stylesheet.
By default, a category choice of duty body_class() has already a lot of possibilities. More individuality can be reached with a pretension or ID.
It is positively not value for a normal blog sourroundings though for a site with small calm it functions flattering well. As we have implemented in this case.

If a page is loaded, afterwards we can pass a title. If we make use of this a single in a physique tab as ID or category as good as afterwards emanate for any ID or class a style, a right pattern will be loaded.

Alternatively, we can work with a ID of a page or article, duty the_ID() passes it. Please note, IDs as good as classes might not begin with a series as good as thus we contingency supplement a fibre before, for example:

<div id="page-<?php the_ID(); ?>">

As a last alternative, we would similar to to discuss which we can enhance a duty body_class() around Hook with own classes. So we can have a pretension of a page/post around offshoot in this function.

function fb_title_body_class($classes) {
	global $post;
 
	$classes[] = sanitize_title_with_dashes( get_the_title( $post->ID ) );
 
	return $classes;
}
add_filter( 'body_class', 'fb_title_body_class' );

In a following I’m display we a simplest box around title, so which we outlay usually this category as good as as well as body_class() is not used.

With a assistance of a Title

Put a stylesheet in a header of your Theme:

<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/custom.css" type="text/css" media="screen" />

Alternatively, this is integrated around Hook wp_head if a specific page is loaded, so we bucket a pithy character piece usually if it is needed. Everything happens in a functions.php of your Theme.

in your physique tab of page.php is a pretension of a page:

<body class="<?php echo sanitize_title_with_dashes( get_the_title() ); ?>">

Therefore a page “My Home” has a physique tag:

<body class="my-home">
and so on...

in your custom.css we conclude all character for category home: for example

.my-home a { color: #090; text-decoration: none; }
.my-home a:visited { color: #999; text-decoration: none; }
.my-home a:hover { color: #f60; text-decoration: none; }

in a strange Theme it looks similar to this:

a { color: #009; text-decoration: underline; }
a:visited { color: #999; text-decoration: underline; }
a:hover { color: #c00; text-decoration: underline; }

I consider it’s an proceed with a lot intensity as good as so we leave it to your creativity. So if we would similar to to have for any page a opposite character sheet, this is an easy solution.


Related posts:


WP Engineer Favicon Thanks for subscribing a feed! Sponsor a WP Engineer Blog as good as get your code in front of multiform hundred users per day!
© WP Engineer Team, All rights indifferent (Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)

View post:
Individual Design for any Page


Get Auto Caffeinated Content for Your WordPress Blog



SMALL TIPS USING WORDPRESS AND JQUERY

Inside of WordPress have been multiform of JavaScript libraries available, we can make make make make make make make make use of of of of of of of of them simply as well as we do not need an additional Theme or Plugins. Also, this is a endorsed proceed to capacitate libraries , so they won’t be installed some-more than once. Some records on these dual topics can be found in a essay Use JavaScript Libraries In And Of WordPress.

But from time to time we need something specific, so we have a small formula snippets for we in this post now. And we quite wish to uncover a small examples with jQuery. Many Themes as well as Plugins regulating jQuery as well as it is flattering easy to work with jQuery. In principle, these hooks as well as calls additionally request to your own scripts as well as alternative libraries.

The Hooks

WordPress provides Hooks to offshoot at certain points in to a core. This is a single of a strengths of WordPress as well as a following 3 Hooks have been in sold engaging to embody scripts in your Themes. The following examples spell out a small unsentimental use.

Replace jQuery of WordPress in your Theme with Google AJAX Library

In a following formula a jQuery-Library of Google CDN gets loaded; But we can still make make make make make make make make use of of of of of of of of jQuery though any problem. Other Plugins can entrance a living room really easy around wp_enqueue_script().

function fb_greyfoto_init() {
	if ( !is_admin() ) { // essentially not necessary, given a Hook usually get used in a Theme
		wp_deregister_script( 'jquery' ); // unregistered pass jQuery
		wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.4.2'); // register pass jQuery with URL of Google CDN
		wp_enqueue_script( 'jquery' ); // embody jQuery
	}
}
// nur for Themes given WordPress 3.0
add_action( 'after_setup_theme', 'fb_greyfoto_init' ); // Theme active, embody function

jQuery Library in footer

The default call of wp_enqueue_script( 'jquery' ) in your Theme takes care, which it uses jQuery of WordPress as well as if all Plugins as well as Themes have been setup correctly, a living room will be bucket usually once. But jQuery won’t get installed in your footer, instead in head of your site. That’s given we have to regulate a formula a small bit as well as supplement a parameter for “load in footer”.
Here have been dual examples prior to as well as after WordPress 3.0 given after_setup_theme is usually accessible given WordPress 3.0.

function fb_greyfoto_init() {
	if ( !is_admin() ) {
		wp_deregister_script( 'jquery' );
		wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.4.2', true ); // bucket in footer - true
		wp_enqueue_script( 'jquery' );
 
		// bucket js of Theme, requires jQuery
		wp_enqueue_script( 'styleswitcher', get_bloginfo( 'template_directory') . '/js/styleswitcher.jquery.php', array( 'jquery'), '1.3.2', true ); // bucket my book with pass styleswitcher in footer as well as make make make make make make make make use of of of of of of of of jQuery
		wp_enqueue_script( 'greyfoto', get_template_directory_uri() . '/js/photoblogfb.js', array( 'jquery', 'styleswitcher'), '1.1.3.1', true ); // make make make make make make make make use of of of of of of of of jQuery as well as styleswitcher as well as afterwards bucket book greyfoto
	}
}
 
// additionally for WP < chronicle 3.0
global $wp_version;
if ( version_compare($wp_version, "3.0alpha", "<") ) {
	add_action( 'init', 'fb_greyfoto_init' );
} else {
	add_action( 'after_setup_theme', 'fb_greyfoto_init' );
}

Load book for specific page

Sometimes we need a small scripts usually for a specific template, page or post – Therefore have been Conditional Tags. This probability improves a opening of your website. The following book will be installed usually for a template custom-page.php.

function fb_greyfoto_page_init() {
	if ( !is_page_template( 'custom-page.php' ) )
		return;
 
	wp_enqueue_script( 'mypagescript', get_template_directory_uri() . '/js/my_script_4_page.js', array('jquery'), '0.1', true );
}
add_action( 'template_redirect', 'fb_greyfoto_page_init' );

The make make make use of of of of $

Within scripts we have to cruise multiform things.
To work with $ , as most have been used to with jQuery, we have to broach jQuery to $ ; That’s an easy task, a reduced chronicle is $(function() {} ); , which should be used inside of WordPress.

jQuery(function ($) {
	// Now we can make make make make make make make make use of of of of of of of of $ as a anxiety to jQuery though any problem
});

To check either a HTML is loaded, make make make make make make make make use of of of of of of of of a following call. That creates certain which a DOM is installed as well as we can crop a DOM around jQuery as well as right away a genuine work of a book can start. we strongly suggest to make make make make make make make make use of of of of of of of of this variant. we do not wish to insist all a benefits, though we can review about it in a essay Introducing $(document).ready().

jQuery(document).ready(function ($) {
	$('#id').toggle({
		//parameter for e.g. toggle
	});
});

Related posts:


WP Engineer Favicon Thanks for subscribing a feed! Sponsor a WP Engineer Blog as well as get your code in front of multiform hundred users per day!
© WP Engineer Team, All rights indifferent (Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)

Excerpt from: 
Small Tips Using WordPress as well as jQuery


Get Auto Caffeinated Content for Your WordPress Blog



DETECT AN AJAX REQUEST IN PHP

we similar to regulating a same PHP book for both AJAX as well as non-AJAX calm requests. Using a single book usually creates all simpler since it’s usually a single record to update/edit as well as it’s a single some-more cache-able request.

Here is a strange post: 
Detect an AJAX Request in PHP


Get Auto Caffeinated Content for Your WordPress Blog



HOW TO CREATE A JQUERY SLIDE GALLERY WITH WORDPRESS POSTS

A mini beam on how to supplement a jQuery Slide Gallery, FeaturedBox, in to WordPress by regulating WordPress posts for a content. Includes source formula of Javascript snippert, CSS formula as well as PHP formula to have it easy for a reader.

www.FeedBurner.com) How to Create a jQuery Slide Gallery with WordPress Posts How to Create a jQuery Slide Gallery with WordPress Posts

Original post: 
How to Create a jQuery Slide Gallery with WordPress Posts


Get Auto Caffeinated Content for Your WordPress Blog



HOW TO ADD AUTHOR INFO TO THESIS THEME AUTHOR PAGE

Here is a full PHP as well as CSS formula we am regulating to supplement a writer report on repository page, this formula functions a of a double back that equates to we can make use of it anywhere on your WordPress blog

www.FeedBurner.com) How to add Author info to Thesis Theme Author page

See a rest here:
How to supplement Author info to Thesis Theme Author page


Get Auto Caffeinated Content for Your WordPress Blog



WPIN WORDPRESS BLOG DIRECTORY

Welcome to WPin WordPress Web Directory, this site is quite dedicated to blogs as well as websites powered by WordPress. You can contention your site for giveaway all we have to do is register as well as contention your WordPress Powered site!

www.FeedBurner.com) WPin WordPress Blog Directory

Read some-more here: 
WPin WordPress Blog Directory


Get Auto Caffeinated Content for Your WordPress Blog



FLATTR BUTTON FOR WORDPRESS WITHOUT A PLUGIN

flattr-logo-beta Flattr Button for WordPress without a Plugin
There is a lot articulate about Flattr as well as a thought positively is worth a try. That’s since we longed for to exam as well as confederate Flattr in a blog. However, we do not unequivocally similar to a Plugin as well as that’s since we combined a tiny tiny function, which integrates a symbol as we can see right underneath a tweets of any post.

The function

The following tiny duty goes in a functions.php of a themes or outsourced in a Plugin. It depends what is your perspective – for me it is theme-specific as well as to illustrate a duty of a thesis as well as to illustrate in a functions.php of a theme.

/**
 * Flattr Button in WordPress Templates
 *
 * @author Frank Bültge
 * @link   Flattr API https://flattr.com/support/api
 * @param  integer  $uid   personal user ID
 * @param  fibre   $cat   Flattr category: text, images, video, audio, program or rest.
 * @param  fibre   $btn   Type of Flattr button: '' or 'compact'
 * @param  integer  $hide  Use this to censor a thing from listings on flattr.com. The worth 1 will censor a thing.
 *
 */
function fb_flattr_link($uid = '', $cat = 'text', $btn = 'compact', $hide = 0) {
 
	$uid  = (int) $uid;
	$cat  = htmlspecialchars($cat);
	$btn  = htmlspecialchars($btn);
	$hide = (int) $hide;
 
	$noflattr = 0;
	$noflattr = (int) get_post_meta( get_the_ID(), 'noflattr', true );
 
	if ( defined('WPLANG') )
		$locale = WPLANG;
	if ( empty($locale) )
		$locale = 'en_US';
 
	$ftag = '';
	$tags = get_the_tags( get_the_ID() );
	if ($tags) {
		foreach($tags as $tag) {
			$ftag .= $tag->name . ', ';
		}
		$ftag = substr($ftag, 0, -2);
	} else {
		$tag = '';
	}
 
	$dsc = htmlspecialchars( strip_tags( trim( get_the_excerpt() ) ) );
	$dsc = str_replace("'", " ", $dsc);
	$dsc = str_replace("n", " ", $dsc); // might be rn
 
	$flattr = '
	<span class="flattr">
		<script type="text/javascript">
			var flattr_uid  = '' . $uid . '';
			var flattr_url  = '' . get_permalink() . '';
			var flattr_tle  = '' . get_the_title() . '';
			var flattr_dsc  = '' . $dsc . '';
			var flattr_cat  = '' . $cat . '';
			var flattr_lng  = '' . $locale . '';
			var flattr_tag  = '' . $ftag . '';
			var flattr_btn  = '' . $btn . '';
			var flattr_hide = ' . $hide . ';
		</script>
		<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>
	</span>
	';
 
	if ( !$noflattr )
		echo $flattr;
}

Usage

Within a template for your posts a on top of duty will be called, a call would routinely be suitable in a single.php of a theme.

<?php if ( function_exists('fb_flattr_link') ) fb_flattr_link( $uid = 'YOUR_UID' ); ?>

I additionally combined a law margin – if we make make use of of this only sort noflattr as well as as a worth 1, afterwards a symbol won’t display. we consider there have been posts which do not need a flattr button, for e.g. since it is a guest post.

noflattr-300x104 Flattr Button for WordPress without a Plugin

The symbol will be displayed inside of a span-element with a category flattr as well as can be addressed around CSS, here a tiny example:

.flattr {
margin: 5px 0 0 5px;
}

The duty can be stretched in most ways, for example, we could embody an ID, so which blogs with opposite authors regularly get a symbol for any writer – a law margin for a ID can help.
You can additionally outsource all in Metaboxes, to illustrate creation it some-more user-friendly as well as automatically display it prior to a calm or in your feed. Since Flattr provides a own Plugin, we didn’t longed for to set up a Plugin as well as who might make make use of of a duty can magnify it accordingly, if a stream functionality is not enough.


Related posts:


WP Engineer Favicon Thanks for subscribing a feed! Sponsor a WP Engineer Blog as well as get your code in front of multiform hundred users per day!
© WP Engineer Team, All rights indifferent (Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)

Read more: 
Flattr Button for WordPress but a Plugin


Get Auto Caffeinated Content for Your WordPress Blog

Pages