Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter brisimmons105

    (@brisimmons105)

    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?

    Thread Starter brisimmons105

    (@brisimmons105)

    I have figured it out.
    Just in case anyone needs to do the same, here is the code I used.

    http://pastebin.com/bqESTw3V

    Thread Starter brisimmons105

    (@brisimmons105)

    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>" 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().
    ?>

    Thread Starter brisimmons105

    (@brisimmons105)

    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().
    ?>

    brisimmons105

    (@brisimmons105)

    I’m wondering if anyone found a solution to this?
    Having the same issue here.

    Thread Starter brisimmons105

    (@brisimmons105)

    @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.

    Thread Starter brisimmons105

    (@brisimmons105)

    Thanks 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.

    Thread Starter brisimmons105

    (@brisimmons105)

    Yea, 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.

    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?

    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.

    Thread Starter brisimmons105

    (@brisimmons105)

    Thanks 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.

    Okay…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(); ?>

    Hmm..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(); ?>

    Thread Starter brisimmons105

    (@brisimmons105)

    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?

    I 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.

Viewing 15 replies - 1 through 15 (of 21 total)