Forum Replies Created
-
AuthorPosts
-
homemadehooplahMember
Yeah, that would for sure be helpful 🙂 After all my searching in code in the past month (I've know HTML and CSS for 15 years but php is totally new to me) I was surprised how often I could replicate the screenshots but then run into a random formatting problem I didn't anticipate once I was testing my site. I almost always prefer text over video for tutorials but seeing the final product in live action before diving in would be amazing.
homemadehooplahMemberThanks x3! I was able to find a comment that helped fix my navigation problem.
Question for this setup - is it responsive?
http://wpsites.net/web-design/4-column-category-archive-recipes-featured-image-title-only/
homemadehooplahMemberThanks again for the reply! And yes, those are exact examples of what I'm trying to accomplish 😀
I finally managed to get the "recipe" custom post types to display on archive pages using your tutorial above plus the code from here: https://wpbeaches.com/show-custom-post-types-category-archive-page/ and adding this to my functions.php file:
function hooplah_show_all_archives( $query ) { if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { $query->set( 'post_type', array( 'post', 'recipe' )); return $query; } }
Again, I'm so new to all of this I don't know exactly what this is doing other than letting me identify the 'recipe' post type as something that can be displayed on archive pages.
Although, I did have to remove this:
add_filter( 'pre_get_posts', 'hooplah_show_all_archives' );
At the end of the code, because for whatever reason, this was causing my navigation menu to display a list of pages instead of what I have set in Appearance > Menus. So far in clicking around it doesn't seem to have negatively impacted anything, so I guess it's okay to leave it out?
homemadehooplahMemberThanks for the reply!
1. I've tried searching the Foodie Pro files, but since I'm still learning, I can't seem to identify what code they're using to create the archive pages. Nothing is clearly labeled "archive" or "grid archive" or anything similar.
2. I've actually tried that tutorial and for some reason it outputs blank data for my site for date, category, and taxamony archives. I'm at a loss as to why. EDITED TO ADD: Would the fact that I'm working with a custom post type ("recipes") have anything to do with this approach not working?
3. Thanks for the link! I have a few other ways bookmarked to accomplish the same effect, but so far I haven't been able to get the archive pages to 1) output the correct post data for given URL (ex: recipes/breadkfast) and 2) allow me to customize exactly what data is output (featured image, title, etc). I need both of these before I can even begin styling and so far it's been extremely difficult 🙁
homemadehooplahMemberHey there! Yes, there is a menu assigned under Appearance > Menus. And I've done as much troubleshooting as I can with it - removing and reattaching the menu, creating a new menu from scratch, and I even deleted the original menu to eliminate any problems with it (I'm designing the site on my PC with Bitnami and used an import from my live site to test with, and the old menu had an elaborate menu plugin that isn't on the test site, so I figured starting from absolute scratch couldn't hurt). I've also tried assigning the same menu to primary and secondary as well as assigning different menus to each, but still the secondary refuses to show.
So after all that, I'm still at a loss of what's keeping the secondary menu from showing. Even when I view the source on my page, the skeleton of the secondary nav *isn't* there, so I know it's not a CSS / styling issue that's keeping it hidden.
After two days of struggling with it I've decided to move on to a new navigation solution that doesn't require the secondary nav, but I'm still a little worried there might be a root cause or error within my theme that might rear it's head again as I'm working through the files. Are there any other troubleshooting steps I can go through to make sure everything is still a-okay?
-
AuthorPosts