Rose
Forum Replies Created
-
This solution seems to be working great, thank you!
I created a new channel to see if the new channel would work with my custom post type–it does. So this is definitely an issue specific to my default podcast feed.
I’m not sure what my next step should be. Have you figured out what could be happening?
No. I think I did briefly enable it when I was experimenting with the plugin a few months ago, but it’s not enabled now. Could having enabled it in the past have broken something?
Your method is clearly so much better than mine! Thank you very much.
Forum: Developing with WordPress
In reply to: How do I set an orderby on a custom taxonomy template?This worked for me:
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?> <?php $args = array( 'post_status' => 'publish', 'post_type' => 'post', 'tax_query' => array( array( 'taxonomy' => 'series', 'field' => 'slug', 'terms' => $term->slug, ), ), 'meta_key' => 'series_part_num', 'orderby' => 'meta_value_num', 'order' => 'ASC', ); $query = new WP_Query( $args ); ?> <?php if( $query->have_posts() ): ?> <div class="list-group mb-5"> <?php while( $query->have_posts() ) : $query->the_post(); ?> <?php get_template_part( 'includes/listgroup' ); ?> <?php endwhile; ?> </div> <?php endif; ?> <?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>
It looks like maybe where I’m running into trouble is that my post type is hierarchical. Perhaps PowerPress is not the plugin for me, alas!
I’m obviously not of sound mind to be working on anything right now. I forgot to clear my cache. *headdesk*
This problem was not a problem at all and how I managed not to think of the most obvious solution is beyond me. All resolved now.
My installation has only one user: me. So I’m not really concerned with other users. I just need an example that does something similar to what I’m aiming for. I’m not quite advanced enough to code from complete scratch just yet.
I am confused about the implication that the WP taxonomy boxes couldn’t be hidden for the post type as a whole and not just for a particular user.
Forum: Everything else WordPress
In reply to: Using bitly links in the media library – display of statsI have. People were having trouble downloading that way, so I abandoned it about a year ago. Bitly has proven far more useful and successful.
Modify how?
I tried this:
<?php $terms = get_the_terms( $post->ID , 'writer' ); if($terms) { $i = 1; foreach( $terms as $term ) { if ( $i > 1 ) { if ( $i != ( count( $terms ) - 1 ) && $i != ( count( $terms ) ) ) { echo ', '; } else { echo ' & '; } } echo $term->name; $i++; } } ?>
The separator appears in the right place, but they are ALL ampersands, no commas.
The ampersand appears after the last term, when it should precede it.
My actual code includes a bit more than this, I just shared the basic idea.
And if you just echo a comma in each loop, that means there will be (a) a hanging, unneeded comma at the end of the string, and (b) no ampersand.
I think I could use the implode function somehow to do that? I haven’t tried it yet, since that’s not what I’m really going for.
Forum: Fixing WordPress
In reply to: Managing taxonomy terms appearing in multiple taxonomiesYes, I’m talking about custom taxonomies, not categories or tags. And you’re right, there probably is a way to come up with some sort of query… I’ll have to think on this for a bit while I try to figure out where to start.