WordPress Notebook

this is my new cheat sheet because I forget things alot.  If it’s useful for you, awesome.

Adding Custom Post Formats to a WordPress Theme

If a theme does not support custom post formats (the new 2012 theme from WordPress does), you just need to add one line of code to your theme’s functions.php file.

If you are using the twentyeleven theme, the required PHP for post formats is included in the functions.php at around line 47. It looks like this:

add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) );

This single line of code produces the post format options you can see when you go to your Dashboard to create a new post. You’ll see the CFP options in the right column.

If your theme supports custom post formats, you'll see this in the Add New Post dash.

If you don’t see these, add the above lines of code into your functions.php file, which can be found inside your theme folder: wp-content/themes/nameofyourtheme/functions.php. Make a backup of the functions.php file before making any changes.

Once you’ve added this you’ll see the custom post formats next time you log in.

Add a new post and select a post format and have a look at how it displays. You’ll likely need to style the post formats and I’m in the middle of writing a tutorials on styling CFPs with CSS. Hoping to get that finished very soon.

Moving WordPress To A New Server Or Host

After several frustrating attempts, I stumbled across a great tutorial which in my mind, this is THE definitive How To. It worked perfectly.  Visit page.

Other Notes

My Child Theme “Yes, I DID do This Right” Note:

/*
Theme Name: grovesdesign
Description: Child theme for groves design based on twenty eleven theme
Author: karen groves
Template: twentyeleven
*/

@import url(“../twentyeleven/style.css”);

 

Important : Both the Template and @import url path MUST match the name of the Parent theme.

 

Themes I Like to use for Child Themes

ThrillingTheme

Press Play

TwentyEleven

Recent Posts

  1. Latest sketch (and quick test of posting images to WP site). Comments Off
  2. Oh, for a Pensieve App Comments Off
  3. Before painting, you have to strip Comments Off