MB Creation
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Popup Manager] [Plugin: Simple Popup Manager] Close button?Andrew,
I just released v 1.1 with optional close button and touchstart event for the iphone.
Forum: Plugins
In reply to: [Simple Popup Manager] [Plugin: Simple Popup Manager] Close button?Hi rhdri and thank you for your feedback.
Sorry i didn’t try it on an iPhone that’s an annoying problem !The truth is i didn’t want the plugin to have any “style or look” so that’s why i didnt add a cross or button 🙁
I’ll update the plugin next week for sure and let you know. In the meantime you can add directly in the popup content a link with a css class “closepopup” to bind the close event. Something like :
<a href="#" class="closepopup">Close window</a>
or even<a href="#" class="closepopup">X</a>Let me know !
If you like the plugin, rate it 🙂Forum: Fixing WordPress
In reply to: Query categories from a custom posttype?Hello, that should help. “types” are category(ie taxonomy) within your custom postype. “references” is the custom post type in my code
<?php $terms = get_terms("types"); $count = count($terms); if ( $count > 0 ){ foreach ( $terms as $term ) { echo "<h2>" . $term->name . "</h2>"; $args = array( 'numberposts' => 1, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'references', 'types' => $term->slug, 'post_status' => 'publish' ); $sommaire_cat = get_posts ( $args ); foreach( $sommaire_cat as $post ) : ?> <a href="<?php the_permalink(); ?>"><?php the_title();?></a> <?php endforeach; } } ?>