Title: João Miguel's Replies | WordPress.org

---

# João Miguel

  [  ](https://wordpress.org/support/users/babaloo/)

 *   [Profile](https://wordpress.org/support/users/babaloo/)
 *   [Topics Started](https://wordpress.org/support/users/babaloo/topics/)
 *   [Replies Created](https://wordpress.org/support/users/babaloo/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/babaloo/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/babaloo/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/babaloo/engagements/)
 *   [Favorites](https://wordpress.org/support/users/babaloo/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Charts] Tips on how to use dynamic data](https://wordpress.org/support/topic/tips-on-how-to-use-dynamic-data/)
 *  Thread Starter [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/tips-on-how-to-use-dynamic-data/#post-8713937)
 * Michalmic, have you tried hardwiring the shortcode to your template file, like
   I showed in the first example??
 * `<?php echo do_shortcode( '[wp_charts title="mypie" type="pie" align="alignright"
   margin="5px 20px" data="10,32,50,25,5"]' ); ?>`
 * Of course, you have to create the chart with WP Charts first…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] use with sucuri plugin](https://wordpress.org/support/topic/use-with-sucuri-plugin/)
 *  [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/use-with-sucuri-plugin/#post-8177648)
 * Hey Saajan, any news on that Sucuri AIO combo? I’m looking to use them together
   as well and any follow up on your deploy would be great to know!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Charts] Tips on how to use dynamic data](https://wordpress.org/support/topic/tips-on-how-to-use-dynamic-data/)
 *  Thread Starter [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/tips-on-how-to-use-dynamic-data/#post-8150273)
 * A minor correction to the WordPress data chart. Please replace the variables 
   in the shortcode, as below.
 *     ```
       // Print the chart 
       echo do_shortcode('[wp_charts title="poebar" type="bar" align="alignright" margin="5px 20px" data="'.$chartNewData.'"]');
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbPress Digest] [solved] Message Body Hack](https://wordpress.org/support/topic/solved-message-body-hack/)
 *  Thread Starter [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/solved-message-body-hack/#post-6843816)
 * Did I say “Mission Accomplished”?
 * Sorry, but the date_query above is messed up! It will return all content in the
   forum’s history. The correct the date query is:
 *     ```
       'date_query' => array(
       array(
       'after' => date( 'Y-m-d H:i:s', $time ),
       'compare' => '>',
       'type' => 'DATETIME',
                  )
            )
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Thirteen] How to have Twenty Thirteen be the width of the browser](https://wordpress.org/support/topic/how-to-have-twenty-thirteen-be-the-width-of-the-browser-1/)
 *  [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/how-to-have-twenty-thirteen-be-the-width-of-the-browser-1/#post-4694914)
 * The main idea you got to grasp with Twenty Thirteen is that it has a max-width
   set to a fixed size, 1080px, meaning the site’s body width will remain at 1080px
   from 1024px resolutions and up, including Full HD, Retina displays (iPad 3 & 
   4, iPhone 4 & 5) and other large screen formats.
    To change that you need to 
   replace or append this fixed max-width spec (1080px) on your child theme’s css
   to a relative measure. Check this thread dealing with a full width page conundrum
   and look at **migf1’s** solution towards the bottom of the thread, copied below.
   [http://wordpress.org/support/topic/full-width-page-template-2?replies=26](http://wordpress.org/support/topic/full-width-page-template-2?replies=26)
   In the Child’s theme CSS file add:
 *     ```
       ...
       .my-full-size {
       	margin-left: auto !important;
       	margin-right: auto !important;
       	height: auto;
       	padding-right: 1em !important;
       }
       ```
   
 * > And then, in my full-width-page.php file I just add the my-full-size class 
   > to the desired elements:
 *     ```
       ...
       <?php /* The loop */ ?>
       <?php while ( have_posts() ) : the_post(); ?>
   
       	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       		<header class="entry-header my-full-size">
       			<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
       			<div class="entry-thumbnail">
       				<?php the_post_thumbnail(); ?>
       			</div>
       			<?php endif; ?>
   
       			<h1 class="entry-title my-full-size"><?php the_title(); ?></h1>
       		</header><!-- .entry-header -->
   
       		<div class="entry-content my-full-size">
       			<?php the_content(); ?>
       			<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
       		</div><!-- .entry-content -->
   
       		<footer class="entry-meta">
       			<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
       		</footer><!-- .entry-meta -->
       	</article><!-- #post -->
   
       	<?php comments_template(); ?>
       <?php endwhile; ?>
       ...
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Thirteen] responsive screen size](https://wordpress.org/support/topic/responsive-screen-size/)
 *  [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/responsive-screen-size/#post-4922327)
 * Twenty thirteen works with a fixed max-width. That means your site’s body will
   remain 1080px wide at any resolution from 1024 and up, including Full HD. Your
   screen resolution (1920px wide) minus the theme’s max-width (1080px wide) is 
   the gap that you see, about 450px on each side.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bxSlider integration for WordPress] HTML slider template tag?](https://wordpress.org/support/topic/html-slider-template-tag/)
 *  Thread Starter [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/html-slider-template-tag/#post-5017505)
 * So here’s a workaround to add a bit of html content to the bxslider gallery.
 * This will work with images attached to any given post or page, but html content
   must be edited in the Media Library > Media File > Edit > Description field.
   
   There’s just a couple of edits to the plugin code. First, add a variable to extract
   the content from the attachment’s description field. Finally, insert the html
   markup in the concatenated string.
 * _bxslider-integration/includes/gallery-shortcode.view.php_
    Inside the foreach
   loop, which iterates the gallery attachments, you will add a variable for the
   attachments content and the html markup to render the string.
 *     ```
       <div class="gallery-wrapper">
       	<div class="bxslider">
       <?php
       foreach ( $attachments as $attachment ) :
       	$img_attr = wp_get_attachment_image_src( $attachment->ID, $size );
       	$title = apply_filters( 'the_title', $attachment->post_title, $attachment->ID );
       	$desc = $attachment->post_excerpt;
       	$mytext = apply_filters ("the_content", $attachment->post_content);
       /* The $my_text variable extracts the attachment html content.
       Use the description field in the Media Library to edit the markup.*/
       ?>
         		<div class="bxslide"><!-- slide div -->
       <?php echo sprintf( '<div><img src="%1$s" alt="%2$s" title="%3$s" /></div><div id="my_content_here">%4$s</div>',
         			$img_attr[0], esc_attr( $desc ), esc_attr( $title ),$mytext );
         		?></div>
       <?php
       endforeach; ?>
       	</div>
       	</div>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bxSlider integration for WordPress] HTML slider template tag?](https://wordpress.org/support/topic/html-slider-template-tag/)
 *  Thread Starter [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/html-slider-template-tag/#post-5017419)
 * Yep, that’s right. It would be nice though to have an interface so that clients
   and everyday users could update/ edit the slider. Thanks for your response, anyway!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Thirteen] Custom sidebar call for single custom post page](https://wordpress.org/support/topic/custom-sidebar-call-for-single-post-type/)
 *  Thread Starter [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/custom-sidebar-call-for-single-post-type/#post-4954777)
 * Looking more carefully into the page render, I can see that the sidebar is printed
   out up to the widget area div, but the widgets are not initiated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Menu Wizard Widget] Dropdown Output](https://wordpress.org/support/topic/dropdown-output/)
 *  Thread Starter [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [12 years ago](https://wordpress.org/support/topic/dropdown-output/#post-4931481)
 * Thanks, Wiz. I worked around it with a simple wp_dropdown_pages form…
 *     ```
       <?php $args = array(
       			'depth' => 0,
       			'sort_order' => 'ASC',
       			'sort_column' => 'menu_order',
       			'child_of' => 9,
       			'selected' => 0,
       			'echo' => 1,
       			'name' => 'page_id'); ?>
       			<form id="my-dropdown" action="<?php bloginfo('url'); ?>" method="get">
       			<?php wp_dropdown_pages( $args );?>
       			<input type="submit" name="submit" value="go" id="dropdown-btn" />
          </form>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Visualizer: Tables and Charts Manager for WordPress] Dynamic Charts – Auto Update](https://wordpress.org/support/topic/dynamic-charts-auto-update/)
 *  [João Miguel](https://wordpress.org/support/users/babaloo/)
 * (@babaloo)
 * [12 years ago](https://wordpress.org/support/topic/dynamic-charts-auto-update/#post-4406770)
 * Hi madpixels! This is some awesome code you have here!
 * Reading the first paragraph of the wiki page, I’m not sure if I understand exactly
   the way global filters work.
 * I understand the custom filter is something very specific I can use for a single
   graph, hence the chart ID and series and data parameters.
 * My guess is that the global filter, on the other hand, would collect data from
   a single source, a DB query or a function, for example, and use it for multiple
   graphs?
 * Could you give an example of where or how you would use the global filter, in
   relation to the WP posts count (wp_count_posts), for example?
 * I’ll give it a try and post results here later on.

Viewing 11 replies - 1 through 11 (of 11 total)