Kent

Forum Replies Created

Viewing 7 posts - 46 through 52 (of 52 total)
  • Author
    Posts
  • in reply to: Sorting Category Posts Alphabetically #4512

    Kent
    Participant
    Post count: 58

    Yep. Still not working.

    I’ve tried with and without quotes, using ‘in’ category and ‘is’ category. Nada. must be something else. I’m not sure what’s up. Funny, because I have this function right above it and it works fine:

    // Customize the post info function
    add_filter('genesis_post_info', 'post_info_filter');
    function post_info_filter($post_info) {
    if (in_category( array( '4', '8', '5', '6', '7' ) )) {
    $post_info = '[post_date] [post_edit]';
    return $post_info;
    }}

    I’ll keep digging. :)


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    in reply to: Sorting Category Posts Alphabetically #4502

    Kent
    Participant
    Post count: 58

    John,

    I’ve tried it out, it’s actually breaking the archive. now the page isn’t listing any posts from the category at all, rather all the posts from other categories. If you look at http://www.ibsltd.ca/pub/fredericton_royals/category/players/a/, it’s supposed to be an archive for category 51, but actually there’s no posts from that category at all. Weird. Here’s the code I put in functions.php:

    /** Sort Specific Category Posts Alphabetically **/
    add_action('template_redirect', 'child_conditional_actions');
    /** Loads Conditional Actions after the Query is formed before the template is loaded **/
    function child_conditional_actions() {
    if( is_category( array( '50', '51' ) )) {
    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'child_do_abc_loop');
    }
    }
    /**Loads Custom Loop to make query sort Alphabetically**/
    function child_do_abc_loop() {
    genesis_custom_loop( array( 'orderby' => 'title', 'order' => 'DESC' ) );
    }

    I’m going to keep hacking away at it.


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    in reply to: Sorting Category Posts Alphabetically #4498

    Kent
    Participant
    Post count: 58

    John,

    Thanks for the scoop. I’m noticing some differences in the code.

    Does it matter if I use ‘in_category’ or ‘is_category’? There’s both in my functions.php already. I’m curious if there’s a distinction or if they will both do the same thing.

    -Kent


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    in reply to: Help With Customizing Template Pages #4203

    Kent
    Participant
    Post count: 58

    John,

    Thanks for the scoop. I’ve never created custom post types before, but no time like the present to learn, right? :)

    Yes, I was going to link those letters in the table to player archives – I’m using the Tables Reloaded Plugin for all the stats tables on the site so figured it was the easiest way to accomplish that – unless you have better suggestion?

    -Kent


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    in reply to: Help With Customizing Template Pages #4193

    Kent
    Participant
    Post count: 58

    John,

    Thanks. Sorry, I always forget that part. The site is here: http://www.ibsltd.ca/pub/fredericton_royals/.

    What I’m hoping to do is create individual posts for players past and present and then create archive pages for each letter of the alphabet. I don’t want the player archives to show the post titles as H1 – I’d prefer something much smaller, and I’m unsure how/where to set styles to be unique to a specific archive template.

    Do I need to create a 2nd template other than ‘Blog’ perhaps called ‘Players’ for example and style accordingly?

    -Kent


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    in reply to: Genesis Slider/Metric Theme #2350

    Kent
    Participant
    Post count: 58

    Groovay, thanks!


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

    in reply to: CSS/Styling for Minimum Portfolio #2245

    Kent
    Participant
    Post count: 58

    @Andrea – D’oh, I always forget about the code inspectors.

    And also, why U WordPressies all using Firefox when I be using Chrome? Is there something I don’t know?

    Thanks for the tips.


    Dad. Biker. Designer. | kentfackenthall.com | Circle me on Google+, and say hi so I can add you to my WordPress circle!

Viewing 7 posts - 46 through 52 (of 52 total)