brisimmons105
Forum Replies Created
-
Thanks Towhid, but to answer my question, if I create a child theme to customize my member profile I am locked into that version of my theme that I made the child from, correct? Updating the parent theme will have no effect on my child, right?
Forum: Fixing WordPress
In reply to: Posts/Categories Sorted by LetterI have figured it out.
Just in case anyone needs to do the same, here is the code I used.Forum: Hacks
In reply to: Displaying Posts with Custom TaxonomiesI’ve updated my code to use wp_query rather than query_posts..
Still wondering the same question as above….A little help?
<?php $args=array( 'session' => 'rhythm-and-roots-2010', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo 'Artists'; while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Plugins
In reply to: Display Only 1 post per custom taxonomy?I’ve updated my code to use wp_query rather than query_posts..
Still wondering the same question as above….A little help?
<?php $args=array( 'session' => 'rhythm-and-roots-2010', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo 'Artists'; while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Themes and Templates
In reply to: Limit posts per category in query_posts?I’m wondering if anyone found a solution to this?
Having the same issue here.Forum: Fixing WordPress
In reply to: Link directly to the latest post from the category link@alchymyth [referring to your last comment from the post that was moved here]
It somewhat worked…
It listed out the categories, but only 5 of the 7 were hyperlinks. The 5 that were hyperlinks worked great.Unfortunately, the icons were not working.
When I uncommented the wp_list_categories it called the categories with the icons like normal, and then listed them out again, like above, linking 5 of the 7 to the posts.Do you think I could modify the wp_list_categories function to always go to the posts?
That way it should keep the icons there, and go straight to the posts.Thanks for your help.
Forum: Hacks
In reply to: Categories Link directly to the latest postThanks for replying….
Here is the link for the page that I am currently using…I was told I(‘ll have to create a new loop in order to get the new link in there, but I’m not sure how to do that, or if that is true or not.
I’ve also got a plugin I’m using called category icon lite, that gives these categories thumbnails for the page as well…hoping not to break that if I don’t have to.
http://wordpress.pastebin.com/yub7zHbP
Thanks again for taking your time to look at this.
Forum: Fixing WordPress
In reply to: Link directly to the latest post from the category linkYea, I’d like to have all of the categories do the same thing. To be honest, I’m not sure the best way to go about doing it, but I’d like to to go directly to the posts page altogether, and not have to redirect, or anything like that.
Forum: Themes and Templates
In reply to: Get Latest Post from Category's Permalink?Thanks Chris,
Basically, I have lots of categories that act as bands/musicians, and I will be adding more each week.
Each post in the category will represent a song by that band…so there may anywhere from 1-10 posts in that category.Now I’m currently listing out all of the bands I have on an ‘artists’ page, which basically just calls all of the categories on my site at one time, and lists them out.
When a user clicks on a band name, right now it takes them to the category archive page that lists out all of the posts in that category….which I don’t want to happen.
I’d like it to skip the category archives page all together and go right to the latest post in that category….
Does that help?
Forum: Themes and Templates
In reply to: Get Latest Post from Category's Permalink?Hi OTN,
I know this is a bit late, but is there a way to do this without knowing the specific category ID?
I’d like to have the category ID dynamically generated, since I will have lots of categories.
I’m guessing I need a loop to do this, but I am not sure.
Thanks.
Forum: Fixing WordPress
In reply to: Link directly to the latest post from the category linkThanks for responding Jonas, but I’d rather not do anything like that to get this running.
I know there is a way to do it within a category loop…I think i’d just have to change the category URL call to the latest post url call.
I’m just not good enough at php yet to figure it out.
Forum: Fixing WordPress
In reply to: Link directly to Current PostOkay…I’m terrible at php…I’ve inserted it into an example loop from the get_categories page, but its still sending me to the category pages….what am I doing wrong?
<?php /** * Template Name: One column Artits * * A custom page template without sidebar. * * The "Template Name:" bit above allows this to be selectable * from a dropdown menu on the edit page screen. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ get_header(); ?> <div id="container" class="one-column"> <div id="content" role="main"> <?php $args = array( 'category' => 'category', 'numberposts' => 1 ); $myposts= get_posts($args); $first_post = get_permalink($myposts[0]->ID); $args=array( 'orderby' => 'name', 'order' => 'ASC' ); $categories=get_categories($args); foreach($categories as $category) { echo '<p>Category: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </p> '; echo '<p> Description:'. $category->description . '</p>'; echo '<p> Post Count: '. $category->count . '</p>'; } ?> </div><!-- #content --> </div><!-- #container --> <?php if (function_exists('get_cat_icon_lite')) echo get_cat_icon_lite();?> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Link directly to Current PostHmm..I can;t seem to get it to work…mind taking a look at my code?
(I’ve replaced the category ID variable here to display the category for testing purposes)<?php /** * Template Name: One column, no sidebar Artist * * A custom page template without sidebar. * * The "Template Name:" bit above allows this to be selectable * from a dropdown menu on the edit page screen. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ get_header(); ?> <div id="container" class="one-column"> <div id="content" role="main"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php $args = array( 'category' => 'category', 'numberposts' => 1 ); $myposts= get_posts($args); $first_post = get_permalink($myposts[0]->ID); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </div><!-- #post-## --> <?php wp_list_categories('orderby=name&show_count=1&title_li'); ?> <?php comments_template( '', true ); ?> <?php endwhile; ?> </div><!-- #content --> </div><!-- #container --> <?php if (function_exists('get_cat_icon_lite')) echo get_cat_icon_lite();?> <?php get_footer(); ?>Forum: Plugins
In reply to: Categories Links to go straight to the most recent post.For clarification this is exactly what I’m trying to do:
I have lots of categories that act as bands/musicians, and I will be adding more each week.
Each post in the category will represent a song by that band…so there may anywhere from 1-10 posts in that category.Now I’m currently listing out all of the bands I have on an artists page, which basically just calls all of the categories on my site, and lists them out.
When a user clicks on a band name, right now it takes them to the category archive page that lists out all of the posts in that category….which I don’t want to happen.
I’d like it to skip the category archives page all together and go right to the latest post in that category….
Does anyone know a way of doing this?
Forum: Fixing WordPress
In reply to: Link directly to Current PostI may have come up with another way to accomplish this.
Rather than call the category list, then have the category lists link directly to the latest post, I could just call the latest post from each category.
But rather than display the post title, I could call a custom taxonomy with the artist name (category name)…
Not sure which one would be better.
Does that make sense?
Thanks for your help.