Forum Replies Created
-
AuthorPosts
-
carrieoke13Participant
I'm using the block editor. That link is the code snippet I tried but it doesn't seem to be working for me.
I ended up just making a widget and displaying it above the loop for the blog page. That worked. 🙂
Thanks!
June 26, 2020 at 3:14 pm in reply to: Show Custom Post Type and Blog Posts Together on one page #499588carrieoke13ParticipantAwesome, thank you so much!
carrieoke13ParticipantI just figured it out! I had to comment out
unregister_sidebar( 'sidebar-alt' );
as well.
Thanks so much!
carrieoke13ParticipantJust to be clear - this is the code I tried removing from the functions file:
genesis_unregister_layout( 'sidebar-content-sidebar' );
Thanks!
carrieoke13ParticipantThanks, Victor. I tried this before I posted, and it caused this error: "This site is having technical difficulties - please check your site admin email."
Is there anywhere else that code needs to be deleted in order to make it work?
May 16, 2017 at 10:47 am in reply to: WooCommerce / Stripe payment gateway issue with Foodie Pro theme #206558carrieoke13ParticipantThanks, Victor, that is helpful.
May 16, 2017 at 7:01 am in reply to: WooCommerce / Stripe payment gateway issue with Foodie Pro theme #206539carrieoke13ParticipantThe reason I posted here is because I know that the header is called in a different way than in other WordPress themes and I thought someone else might have had the same issue. I'm not an idiot.
Thanks for the helpful response.
carrieoke13ParticipantSo, I had forgotten to turn off one plugin: Akismet. It seems to be working now. I guess that could've been the culprit?
carrieoke13ParticipantThanks, Victor. Do you have any suggestions for figuring out where they are coming from? I have turned off all the plugins.
carrieoke13Participanthmm. have you tried a plugin like Regenerate Thumbnails to see if it would fix the issue?
carrieoke13ParticipantThis is the code I used and it used to work with Minimum Pro - it's pretty similar to yours:
//*get first image function catch_that_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); $first_img = $matches[1][0]; if(empty($first_img)) { $first_img = "/path/to/default.png"; } return $first_img; }
This tutorial also looks promising: http://www.wpbeginner.com/wp-themes/how-to-set-a-default-fallback-image-for-wordpress-post-thumbnails/
carrieoke13ParticipantI did! I kept trying different locations until one of them worked 🙂 Here's what worked:
add_action( 'genesis_before', 'gray_hr', 15 ); function gray_hr () { echo '<hr class="logged-out-subnav">'; }
Thanks 🙂
carrieoke13ParticipantIt's on your style sheet, under Sidebars, line 1884. You need to comment out this code:
.sidebar ul li:before {
content: "0BB 020";
padding-right: 7px;
}June 26, 2015 at 6:26 pm in reply to: Displaying Child Pages on Parent Page (with thumbnails) #157629carrieoke13ParticipantRen , or anyone else, I am trying to add onto this and show the child pages of the child pages (and thumbnails of all). What would I add to this query to make that happen? or would it be a separate query?
Thanks!
Carriecarrieoke13ParticipantThank you both! I will try this.
carrieoke13ParticipantThanks, Brad! I couldn't figure out how to make the grid posts go away, but removing front-page.php worked.
March 6, 2015 at 7:29 pm in reply to: Custom Post Type Categories and Tags not showing up in search #143544carrieoke13ParticipantThanks 🙂
January 12, 2015 at 11:26 am in reply to: Navigation not showing up on category archive pages #137202carrieoke13ParticipantThank you, Carlo! This works beautifully.
January 11, 2015 at 1:11 pm in reply to: Navigation not showing up on category archive pages #137088carrieoke13ParticipantOkay! I have found a solution, and frankly, I have no idea why it works, but someone had another problem and posted about it in the comments here: http://premium.wpmudev.org/blog/add-custom-post-types-to-tags-and-categories-in-wordpress/#comment-153788
Here's what I did: I replaced
// Get all your post types $post_types = array('post' , 'articles');
in the above code with
$post_types = array( 'nav_menu_item','articles', 'news' );
and magically, my menu is back!
thanks so much for pointing me in the right direction!
January 11, 2015 at 1:02 pm in reply to: Navigation not showing up on category archive pages #137083carrieoke13ParticipantOkay, I found the culprit, but I'm not sure how to edit it to fix the issue.
This code adds my custom post types to tags and categories:
//add custom post type to tags and categories function add_custom_types_to_tax( $query ) { if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { // Get all your post types $post_types = array('post' , 'articles'); $query->set( 'post_type', $post_types ); return $query; } } add_filter( 'pre_get_posts', 'add_custom_types_to_tax' );
When I comment it out, the menu reappears on my category archives, but all my custom post types that are in that category don't appear on the page anymore. Help!
-
AuthorPosts