WordPress.org

Ready to get started?Download WordPress

Forums

WooTumblog
Adding Tumblog Functionality to Theme (5 posts)

  1. marybethonline
    Member
    Posted 3 years ago #

    I currently use StudioPress for the theme of my website. I just got started on the design, but I know that I want to use a Tumblr style blog. So when I stumbled across WooTumblog I was really excited.

    I have followed all the steps they outline to get it installed and so far so good... the only part where I get confused is the PHP and coding part of it.

    I am using the Pixel Happy Child Theme for Studio Press and the example they give is with the Twenty Ten theme. I am just at a loss where to add the lines of code and to what files. Here are the links I am referencing and my website.

    Thanks for any help you can give!

    http://www.woothemes.com/support/wootumblog/

    http://mb2designs.com

    ~ Mary Beth

    http://wordpress.org/extend/plugins/woo-tumblog/

  2. Ryan Riatno
    Member
    Posted 3 years ago #

    Open your 'functions.php' in your child theme then add this code:

    // Remove Default Genesis Post Title
    remove_action('genesis_post_title', 'genesis_do_post_title');
    // Remove Default Genesis Post Title
    add_action( 'genesis_post_title','genesis_tumblog_post_title' );
    function genesis_tumblog_post_title() {
    	if ( is_singular() ) {
    		$title = sprintf( '<h1 class="entry-title">%s</h1>', apply_filters( 'genesis_post_title_text', woo_tumblog_the_title("entry-title") ) );
    	}
    
    	else {
    		$title = sprintf( '<h2 class="entry-title"><a href="%s" title="%s" rel="bookmark">%s</a></h2>', get_permalink(), the_title_attribute('echo=0'), apply_filters( 'genesis_post_title_text', woo_tumblog_the_title("entry-title") ) );
    	}
    
    	echo apply_filters('genesis_post_title_output', $title) . "\n";
    }
    
    // Remove Default Genesis Post Content
    remove_action('genesis_post_content', 'genesis_do_post_content');
    // Add Custom Genesis Post Content
    add_action('genesis_post_content', 'genesis_tumblog_post_content');
    function genesis_tumblog_post_content() {
    
    	if ( is_singular() ) {
    		woo_tumblog_content() .
    		the_content(); // display content on posts/pages
    		wp_link_pages( array( 'before' => '<p class="pages">' . __( 'Pages:', 'genesis' ), 'after' => '</p>' ) );
    
    		if ( is_single() && get_option('default_ping_status') == 'open' ) {
    			echo '<!--'; trackback_rdf(); echo '-->' ."\n";
    		}
    
    		if ( is_page() ) {
    			edit_post_link(__('(Edit)', 'genesis'), '', '');
    		}
    
    	}
    	elseif ( genesis_get_option('content_archive') == 'excerpts' ) {
    		woo_tumblog_content() .
    		the_excerpt();
    	}
    	else {
    		if ( genesis_get_option('content_archive_limit') )
    			woo_tumblog_content() .
    			the_content_limit( (int)genesis_get_option('content_archive_limit'), __('[Read more...]', 'genesis') );
    		else
    			woo_tumblog_content() .
    			the_content(__('[Read more...]', 'genesis'));
    	}
    
    }
  3. marybethonline
    Member
    Posted 3 years ago #

    Ryan... You are the best! That did the trick!

    I really really appreciate your help. There is still just the one test post I put up there, but there will be more very shortly. :)

    I can't thank you enough.

    Mary Beth
    mb2designs.com

  4. Ryan Riatno
    Member
    Posted 3 years ago #

    It seems there's a little problem there, you can see the duplicate output of post title. I'll take a look later

  5. nbostic
    Member
    Posted 2 years ago #

    I'm running into the same problem with duplicate post titles, any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic