qBart
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Hide custom post type posts with certain tagThanks for sharing your solution. Can you or someone else help me out? When I use the code below not a single post is being queried…
add_action( 'pre_get_posts', 'my_get_posts'); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query() ) { $query->set('tax_query', array( array( 'taxonomy' => 'event-tag', 'field' => 'id', 'terms' => array( 14 ), //the ID of the event tag 'operator'=> 'NOT IN' ) ) ); $query->set('post_type', array( 'post', 'event' ) ); } return $query; }
However, when I remove the ‘tax_query’ part, posts are being queried again, so something must be inherently wrong about that part.
Forum: Fixing WordPress
In reply to: Hide custom post type posts with certain tagLikewise!
As a temporary solution I have just added to the style.css for each post:
.postid { display: none; }
wrapped by
<?php if (is_homepage) {
and} ?>
but this solution is a quick fix until I find something to properly modify the loop.Forum: Plugins
In reply to: Search the plugin!What you want is really specific.
You need to be able to think what broader solutions may have been already made for your problem.Forum: Plugins
In reply to: [WP Editor] Increase font size in editor aloneVery nice.
Thanks for the heads-up.Forum: Plugins
In reply to: [Picasa Widget] Plugin Stopped WorkingOld plugin is old.
Forum: Plugins
In reply to: [WP Editor] Increase font size in editor aloneCame here to ask the same, too bad.
WP Editor is much less usable this way :/Does anyone know quick solutions outside WP Editor?
Forum: Plugins
In reply to: [WP Geo] WP Geo with Google Maps v3 – Please help by testing…Aaand it’s gone.
Don’t know what that was.Forum: Plugins
In reply to: [WP Geo] WP Geo with Google Maps v3 – Please help by testing…Thanks for the tip, I think I’ll get that to work eventually indeed.
Nothing on WP GEO’s end, that is sure.WP GEO has stopped to work, and I get the error:
The Google Maps API server rejected your request. The “sensor” parameter specified in the request must be set to either “true” or “false”.Maybe it is because of something I’ve done, but I’ve changed themes and disabled all other plugins, so maybe not.
I’ll continue to try to fix.Forum: Plugins
In reply to: [WP Geo] WP Geo with Google Maps v3 – Please help by testing…Installed that version (3.2dev) and it worked with V3, contrary to non-beta version with V2.
Found two bugs so far:
1. It nags me to update it.
2. When I do<div id="map" style='display:none;'><?php if ( function_exists( 'wpgeo_post_map' ) ) wpgeo_post_map(); ?></div>
and make the div appear, the map doesn’t appear. When I remove thedisplay:none
I can toggle it just fine (make it appear and disappear).Forum: Fixing WordPress
In reply to: How to edit my source codeMy guess is that it is part of the theme.
Please go to ‘Appearance’ in the admin panel and then ‘Editor’ (probably translated to French in your case?).
It might be changeable under the index.php file.