Forum Replies Created
-
AuthorPosts
-
January 11, 2015 at 12:51 pm in reply to: Navigation not showing up on category archive pages #137072carrieoke13Participant
Hi Carlos,
I did that on purpose - I moved the footer out of the main container so it would be full width. I did that by adding this code to my functions.php://* Reposition the footer widgets remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); add_action( 'genesis_after', 'genesis_footer_widget_areas' ); //* Reposition the footer remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); add_action( 'genesis_after', 'genesis_footer_markup_open', 11 ); add_action( 'genesis_after', 'genesis_do_footer', 12 ); add_action( 'genesis_after', 'genesis_footer_markup_close', 13 );
I tried what you suggested and it's still not showing up. I'm wondering if something in my custom functions are making it disappear? This is so weird!
December 5, 2014 at 4:47 pm in reply to: Displaying Child Pages on Parent Page (with thumbnails) #133744carrieoke13Participantthank you so so much! Works beautifully.
December 5, 2014 at 4:23 pm in reply to: Displaying Child Pages on Parent Page (with thumbnails) #133740carrieoke13Participantthank you SO much. It is working now, except that it is only showing the 5 most recent posts. Is there a way to have the page display all child pages? Here's an example of it working, showing the most recent 5: http://identitywebandphoto.com/abby/wordpress/designs/sweaters/
carrieoke13ParticipantAaaaand it's working!
This post has one of the posts in the excluded category before it:
http://mylifeinknitwear.com/sands-end/
notice the difference in the two navs under the post.
Thanks so much, Brad!
carrieoke13ParticipantSo I was wrong! I turned off the cache plugin and the right links are showing now!
carrieoke13ParticipantOkay I'm trying this:
/*add previous and next post links*/ add_action( 'genesis_entry_footer', 'custom_single_post_nav', 12 ); /** * @author Brad Dalton * @example http://wpsites.net/web-design/different-ways-to-add-post-navigation-pagination-in-genesis/ * @copyright 2014 WP Sites */ function custom_single_post_nav() { if ( ! is_singular( 'post' ) ) return; echo '<div class="pagination-previous alignleft">'; echo '<<'; previous_post_link('%link', ' %title', FALSE, '44'); echo '</div>'; echo '<div class="pagination-next alignright">'; next_post_link('%link', '%title ', FALSE, '44'); echo '>>'; echo '</div>'; }
(which is your code for pagination, Brad!) and tried to add the parameter. It seems to be excluding the category; but it's doing something weird with the first post on the blog.
So if you look, the default previous/next links are still showing on the blog: http://mylifeinknitwear.com/the-knit-generation/
and the default nav is going to one post, the custom nav I added is going to a different post that is a couple of posts away.
carrieoke13Participantwith the solutionn you're suggesting, post nav is removed from excluded categories, but those posts still remain in the navigation. as in, the post nav on the posts before and after the posts in those categories will still have navlinks pointing to those posts. (like, post 1 is in the blog category, post is in the patterns category, which is the one I want excluded. So Post 1 still has post nav, and the "next" link goes to Post 2.) so it isn't exactly accomplishing what I want because I don't want any links to the excluded posts to be on the post nav. am I understanding it wrong?
carrieoke13ParticipantThanks, Ren. I thought a custom post type might be the better solution.
If I was going to keep this as a blog category, are you saying I would put that snippet in my functions.php? how will it know which category to exclude? I want to keep the post navigation on regular posts.
Thanks!
carrieoke13ParticipantI'm adding some more info in case it is helpful.
I'm already excluding this category from the blog page using this code:
/** Exclude certain category from blog page */ add_action( 'pre_get_posts', 'be_exclude_category_from_blog' ); function be_exclude_category_from_blog( $query ) { if( $query->is_main_query() && $query->is_home() ) { $query->set( 'cat', '-44' ); } }
but I'd like for it not to appear in the previous/post nav, or the monthly archive pages. I basically want the whole category to be separate from the blog.
carrieoke13ParticipantActually, I never could get the titles to display in the same way. So we ended up using the regular paging instead.
carrieoke13ParticipantSo here's what I ended up doing - there may be a more elegant way of doing this but it's working.
I removed all the post meta from the shortcode area in Genesis Simple Edits, and added this to my single.php template:
//*print school info if available add_action ('genesis_entry_footer', 'taxonomy_term' ); function taxonomy_term() { $terms = get_the_terms( $post->ID , 'schools'); if($terms) { $terms_as_text = strip_tags( get_the_term_list( $wp_query->post->ID, 'schools', '', ', ', '' ) ); echo 'As Taught At: '; echo '<strong>'; echo $terms_as_text; echo '</strong>'; echo '<br /><br />'; } }
so now it's just displaying the school info as text, and only shows this info if the post uses this taxonomy.
carrieoke13ParticipantYes, the shortcode is used on every page that has a school associated with it (using Genesis Simple Edits.) The taxonomy is because some posts have categories and also a school and I need to be able to filter the school posts to a certain section, and display the school info differently than the categories (Filed under: category; As Taught at: Schoolname).
carrieoke13ParticipantSo this may not be helpful at all, but I recently needed a page displaying all posts in my custom taxonomy, separated by terms (Which may be what your master archive would be?) I tried a gazillion tutorials and this is the one that finally worked for me:
http://vimodesigns.com/wordpress/how-to-list-all-posts-in-a-custom-taxonomy-separated-by-terms/ Just posting it in case there is something there to help troubleshoot your issue.Also - could you get the list working, and then do the columns with css instead of in the template? The archive portfolio template in the minimum pro theme or executive pro theme could be helpful.
carrieoke13ParticipantHi Brad,
so I've got something working but it's a page template and I feel like maybe there is a better way to do it using Genesis hooks?I used the Minimum Pro archive portfolio template and put this in it (because I want the list styled like the portfolio template):
//this loop returns all posts separated by genres they belong to $post_type = 'post'; // <-- put your custom post type here $tax = 'schools'; // <-- put your custom taxonomy here $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 $tax_term->name; while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="portfolio-image"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div> <?php if ( $image = genesis_get_image( 'format=url&size=portfolio' ) ) { printf( '<div class="portfolio-image"><a href="%s" rel="bookmark"><img src="%s" alt="%s" /></a></div>', get_permalink(), $image, the_title_attribute( 'echo=0' ) ); } endwhile; } wp_reset_query(); } } }
and here's what it looks like right now: http://identitywebandphoto.com/abby/wordpress/testing-posts/
carrieoke13ParticipantThanks, Lauren! I will give this a shot.
June 17, 2014 at 8:05 pm in reply to: minimum pro: archive portfolio for catgeory archive pages and home page #110318carrieoke13ParticipantThank you so much Brad! I will try these out on my site. You rock.
June 17, 2014 at 5:23 pm in reply to: minimum pro: archive portfolio for catgeory archive pages and home page #110290carrieoke13ParticipantHi Brad - it looks like this will display the portfolio posts on the home page? What I'm wanting is the home page to just show the regular blog posts, but in the same style as the archive portfolio page.
So basically home page will show grid style image/title for blog post listing.
June 17, 2014 at 4:53 pm in reply to: minimum pro: archive portfolio for catgeory archive pages and home page #110283carrieoke13ParticipantI will give this a shot! First I need to get the archives looking right and then I'll try this to display the home page as the portfolio grid.
carrieoke13ParticipantThanks, Brad, this is incredibly helpful.
carrieoke13ParticipantSo the image I want to add is the same image for every post title - it's a little icon. I can't add it as a CSS background image because I need it to hang outside of the container. Could I use that same code to place the same image every time?
-
AuthorPosts