• Hi all,

    I have two questions regarding post formats, Twenty Ten and child themes that “Google” could not answer.

    1. How can I add more post formats to a child theme?
      I’m using a child theme of Twenty Ten on my website. Unfortunately, Twenty Ten 1.2 just supports the post formats “asides” and “gallery” at the moment. I would like to add the post formats “image” and “quote”. I think I have to add the following code to the functions.php of my child theme:
      add_theme_support( 'post-formats', array( 'aside', 'gallery', 'image', 'quote' ) );
      But how do I change the other template files?
    2. Is it possible to link to all post with a certain post format?
      Right now, I’m linking to the category “Gallery” in my nav menu. Now, I would like to delete the category “Gallery” and categorize the gallery posts with “Travel”, “Nature”, etc. and mark them with the post format “gallery”. Then, I would like to change the link in the nav menu from the category “Gallery” to the post format “gallery”? Is that possible?

    Thanks in advance for any hint or support.

Viewing 1 replies (of 1 total)
  • Just quick hint about childtheme/functions.php anything you place in here will overwrite parenttheme/functions.php this is of course if there are no hooks installed, in that case you will need to unregister in child theme functions.php.

    Instead of going step by step, take a look at this site https://lisasabin-wilson.com/wordpress-3-1-post-formats-reference perfect explanation is right there.

    Also an example:

    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
        // We are providing our own filter for excerpt_length (or using the unfiltered value)
         remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
        ...
     }

    Cheers,
    Emil

Viewing 1 replies (of 1 total)
  • The topic ‘[Twenty Ten] Post Formats’ is closed to new replies.