Forum Replies Created
-
AuthorPosts
-
boulderbMember
Found an excellent plugin for this.
http://sewpafly.github.io/post-thumbnail-editor/September 13, 2013 at 4:39 pm in reply to: Use Simple Sidebar on Custom Post Type single page #62387boulderbMemberFigured it out...
//Add Sidebar to Post based on Author
add_action('get_header','cd_change_genesis_sidebar');
function cd_change_genesis_sidebar() {
if ( is_single()) {
remove_action( 'genesis_sidebar', 'ss_do_sidebar' ); //remove the default genesis sidebar
add_action( 'genesis_sidebar', 'cd_do_sidebar' ); //add an action hook to call the function for my custom sidebar
}
}//Function to output my custom sidebar
function cd_do_sidebar() {
dynamic_sidebar( get_the_author());
}September 13, 2013 at 12:14 pm in reply to: Use Simple Sidebar on Custom Post Type single page #62318boulderbMemberAny idea how to assign the simple sidebar on posts by author? This is why I've tried but it's not quite right. It's assigning the same sidebar to all posts.
//Add Custom Sidebar to Posts
add_action('get_header','cd_change_genesis_sidebar');
function cd_change_genesis_sidebar() {
if ( is_single()) {
global $post;
$author_id=$post->post_author;
if ($author_id == "Author"); {
remove_action( 'genesis_sidebar', 'ss_do_sidebar' ); //remove the default genesis sidebar
add_action( 'genesis_sidebar', 'cd_do_sidebar' ); //add an action hook to call the function for my custom sidebar
} }
}//Function to output my custom sidebar
function cd_do_sidebar() {
dynamic_sidebar( 'Author' );
}boulderbMemberI'm looking for a good social comment solution. I tried a plugin called Social Comments that seemed to be exactly what I was looking for allowing regular WP comments, Facebook, Google+ etc. For some reason it does not work with Genesis. I'm not sure what the conflict but I'm looking for a fix or a different solution.
-
AuthorPosts