Skip to content

Recent Articles

26
Jul

>Smoke signals

>

27
May

Custom Post Type Panels

Using the custom post type you will notice the page where you edit or add a new post only has the bare minimum of panels.  But what happens if I want to add a specific excerpt???

Easy :-) use the following code and add it to your functions file.

add_post_type_support( '[your custom post type name', 'excerpt' );

Im not quite sure what the other panels are called. When I find out I will reply to this post with a list.

21
May

WordPress 3.0 Custom Post Type Custom Fields

I have been trying out the custom post types for WordPress 3.0 Beta 2, I ran into a problem where i could not call the custom fields for posts i have assigned custom post type values.

I came up with this workaround for now until it is sorted.

function get_post_meta_custom($key, $single = false) {
 global $wpdb,$post;
 $answer = $wpdb->get_var($wpdb->prepare("SELECT meta_value FROM $wpdb->postmeta WHERE post_id = ".$post->ID." AND meta_key = '".$key."'"));
 return $answer;
}

Call it using the following. I use this inside on the single post inside the loop.

 if ( get_post_meta_custom('client_name', true) ) {echo get_post_meta_portfolio('client_name', true);    }
15
May

>Rasta man in vietnam

>


13
May

>River 13 may 2

>


13
May

>River 13 may

>

7
May

Integrate a blank BuddyBar into bbPress

First add this line of code to your bb-config.php

require_once(dirname(__FILE__) . '/../wp-load.php'); (PS my forums is set up in a forums directory in the root of my site.
You may need to change the path to your wp-load.php file)

Next create a functions.php file for your theme if not already there. Then add this line of code to the functions.php file.

add_action( 'bb_foot', 'bp_core_admin_bar');

Now create your menus and add them to the bar.

PS because the buddypress plugin is not activated on a forum, it will load the buddybar with nothing in it. If you are going to copy the default buddypress functions then make sure to change the function name or you will get and error.

Alternatively you could try include the bp-core-adminbar.php file inside buddypress/bp-core if you do not want a blank bar.

5
May

>Radloef 5 May 2010

>

30
Apr

FeedMyMedia WPMU Recent Posts

Recent posts are great, but on a WPMU install you sometimes want to pull through blog posts from a specific sub-blog. Attached to this post is just that. A widget that will allow you to set what blog you want to pull from based on its id, how many posts you want to pull, and lastly set a title.

This is just a skeleton, you can always add in calls to custom fields and other amazing goodies.

NB Not for commercial USE

Download: fmm-wpmu-recent-posts (rename to .php)

Download: fmm-wpmu-recent-posts v1.1 (rename to .php)

28
Apr

>Radlof Park Phase 2

>