swayam.tejwani
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Hide posts in subcategoryYou can hide subcategories using this code in functions.php of your theme
function wpse_filter_child_cats( $query ) { if ( $query->is_category ) { $queried_object = get_queried_object(); $child_cats = (array) get_term_children( $queried_object->term_id, 'category' ); if ( ! $query->is_admin ) //exclude the posts in child categories $query->set( 'category__not_in', array_merge( $child_cats ) ); } return $query; } add_filter( 'pre_get_posts', 'wpse_filter_child_cats' );
`
Let me know if it works
Forum: Plugins
In reply to: [The Events Calendar] WP Query Issues with version 6.0.2Thank you so much, we’re having this issue on live site and your reply helped us a lot ??
Forum: Plugins
In reply to: [Event Organiser] Calendar View brokenyep, facing same issue as above. On front end its loading fine though but backend calendar view, all events come under current date, not sure whats the issue here.
Forum: Fixing WordPress
In reply to: Images problemLocalhost is local to your system only not on the network ??
Forum: Fixing WordPress
In reply to: installation missingTake the backup of database and wp-content, delete jetpack and try to reinstall wp, this way your db & files will be there, then you just have to reinstall jetpack plugin.
Forum: Fixing WordPress
In reply to: Error in Converting Static page to Default HomepageFew things you can try to debug the issue
1) Switch to default theme and check by changing home page settings, if it works then may be problem is in theme.
2) Deactivate plugins one by one and see if they’re causing issue.Forum: Fixing WordPress
In reply to: how to prevent custom fields deletion ?As I know, custom field only deletes when you delete the post, if you want to keep it then you can insert the custom field data in some other custom table other then wp_postmeta and you need to update the custom field if post updates so there will be a sync but it wont delete as the data is now in custom table as well.
Forum: Fixing WordPress
In reply to: syncing website headings to cell phoneCan you post the web page link in question ?
As you mentioned its not synced on cell phone, is that only happens when you’re on phone and not on vieweing site on desktop ?Forum: Fixing WordPress
In reply to: Unable to Locate Button in WP-Admin for EditingHi Justin,
I think you can find it somewhere under Appearance->Widgets because by inspecting through chrome inspector tool it seems like its using widgets instead. So, just check if you can find it there.
Thanks,
SwayamForum: Fixing WordPress
In reply to: If thumbnail doesn’t exist, show more post contentthis
<figure class="sok-thumb"> <?php if ( has_post_thumbnail() ) { echo '<a href="'.get_the_permalink().'">'.get_the_post_thumbnail().'</a>'; } else { ?> <a href="<?php echo get_the_permalink(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /></a> <?php } ?> </figure>
Forum: Fixing WordPress
In reply to: Can’t See Images Some Pages When EditingAs per the screenshot you’ve shared it seems like you’re using plugin like Wp bakery page builder, so notice in screenshot code like this
[vc_column][vc_column_text]
that’s page builder shortcode, so instead of classic editor mode, you need to change it to Visual composer mode i.e. page builder mode (you can find those buttons just above add media)
From there, you can change the image and other related settings directly. Let me know if this helps!Forum: Fixing WordPress
In reply to: How to edit my homepage/Theme pageCan you share website link in question so we can take a look ?
Forum: Fixing WordPress
In reply to: If thumbnail doesn’t exist, show more post contentYou can modify your code to something like this
<?php while ( have_posts() ) : the_post(); ?> <div class="col-md-4"> <div class="sok-blog-box"> <?php if ( has_post_thumbnail() ) { ?> <figure class="sok-thumb"> <?php echo get_the_post_thumbnail(); ?> </figure> <?php } ?> <div class="sok-blog-summary"> <?php the_title( sprintf( '<h2 class="blog-entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> <?php if(has_post_thumbnail()){ the_excerpt(); }else{ $text = get_the_content(); $words = 80; $more = ' […]'; $excerpt = wp_trim_words( $text, $words, $more ); echo $excerpt; } ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ), 'after' => '</div>', ) ); ?> </div> </div><!-- .sok-blog-listing --> </div>
this should work I guess
Forum: Fixing WordPress
In reply to: Redirect to thank you page with codeso, basically here you just need to add one more category into the array like this
$product_categories = array( 'mezcla-y-mastering-online','some-other-category' );
this should work I guess
Forum: Fixing WordPress
In reply to: Theme contains outdated copies of Woocommerce template filesHi Kevin, it seems like you need to update your current theme, by doing that you will have updated template copies of woocommerce in your theme and you wont see this notice again. Hope it helps!