Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I use custom field as a parameter, the next link in foreign language is wrong its pointing to the main language.

    Hi, any updates on this? I’m experiencing the same problem…

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

    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'));
    	}
    
    }

    I’m using MichaelH code

    <?php
    //for a given post type, return all
    $post_type = 'posts';
    $tax = 'province';
    $tax_terms = get_terms($tax);
    if ($tax_terms) {
      foreach ($tax_terms  as $tax_term) {
        $args=array(
          'post_type' => $post_type,
          "$tax" => $tax_term->slug,
          '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 'List of '.$post_type . ' where the taxonomy '. $tax . '  is '. $tax_term->name;
          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();
      }
    }
    ?>

    I have 33 term slug and each of them have 4 posts. Could it be possible to break the list with pagination?

Viewing 5 replies - 1 through 5 (of 5 total)