Title: powerj's Replies | WordPress.org

---

# powerj

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 87 total)

1 [2](https://wordpress.org/support/users/powerj/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/powerj/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/powerj/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/powerj/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/powerj/replies/page/6/?output_format=md)
[→](https://wordpress.org/support/users/powerj/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Rewrite issue](https://wordpress.org/support/topic/rewrite-issue/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/rewrite-issue/#post-10701552)
 * Thanks Jose but I don’t’ think that’s it. It want the URL rewritten to be:
    [http://www.website.com/abc](http://www.website.com/abc)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Changing tax labels in cart totals](https://wordpress.org/support/topic/changing-tax-labels-in-cart-totals/)
 *  [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/changing-tax-labels-in-cart-totals/#post-9429448)
 * GST is set as the Tax Name in Woocommerce > Settings > Tax tab
    and this filter
 *     ```
       add_filter( 'woocommerce_countries_inc_tax_or_vat', function () {
         return __( '(incl. GST)', 'woocommerce' );
       });
       ```
   
 * don’t appear to be changing the text on the emailed invoice – still appears:
   
   $88.00 (includes $8.00 Tax)
 * as opposed to:
    $88.00 (includes $8.00 GST)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Genesis Connect for WooCommerce] Product breadcrumb doesn’t include ‘Shop’](https://wordpress.org/support/topic/product-breadcrumb-doesnt-include-shop/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/product-breadcrumb-doesnt-include-shop/#post-9426205)
 * Ahh filter is add_filter( ‘gencwooc_single_product_crumb’, ‘wt_add_shop_to_breadcrumb’,
   10, 2 );
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Search Box Filter via pre_get_posts](https://wordpress.org/support/topic/search-box-filter-via-pre_get_posts/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/search-box-filter-via-pre_get_posts/#post-9410045)
 * Oh you’re kidding me! The reason this wasn’t working is because of the camel 
   case custom post type mediaReleases
    The post type was registered as `register_post_type('
   mediaReleases', $args );`
 * I changed it to
    `register_post_type( 'mediareleases', $args );`
 * and changed the filter function and now it works!
 * If anyone can explain why using camel case in the instance doesn’t work, I would
   appreciate it.
 * (For transparency I posted this on the Studio Press forums also – because I’m
   using the Genesis framework)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Event Calendar and user input](https://wordpress.org/support/topic/event-calendar-and-user-input/)
 *  [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/event-calendar-and-user-input/#post-9409796)
 * Its been quite awhile since I used it, but I seem to remember it worked quite
   well out of the box. There is a lot of good documentation on their website, just
   ensure you are looking at the beginner setup docs as its a sophisticated product
   and there is a lot of documentation for developers.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Group by custom date field](https://wordpress.org/support/topic/group-by-custom-date-field/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/group-by-custom-date-field/#post-9409773)
 * Many thanks for your help
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Search Box Filter via pre_get_posts](https://wordpress.org/support/topic/search-box-filter-via-pre_get_posts/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years ago](https://wordpress.org/support/topic/search-box-filter-via-pre_get_posts/#post-9407041)
 * I’ve come up with this code for the underlying template, which is working fine
   except for not restricting to the custom post type
 *     ```
       /*Limit search box to search in cpt media releases*/
       add_filter( 'genesis_search_form', 'wt_search_form');
       function wt_search_form( $form ) {
           $homeUrl =  home_url( '/' );
   
       		$form = '<form role="search" method="get" class="search-form" action="' . $homeUrl . '">
               <label><span class="screen-reader-text">Search for Media Releases:</span><input type="search" class="search-field" placeholder="Search Media Releases" value="" name="s" title="Search for Media Releases:" /></label>
               <input type="hidden" name="post_type" value="mediaReleases"><input type="submit" class="search-submit" value="Search" /></form>
       		</form>';
       		return $form;
       	}
       ```
   
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Group by custom date field](https://wordpress.org/support/topic/group-by-custom-date-field/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years ago](https://wordpress.org/support/topic/group-by-custom-date-field/#post-9406886)
 * Many thanks, hopefully I have this right now. Seems to be working correctly.
 *     ```
           global $wp_query;
       	$wp_query = new WP_Query( $args );
   
               //Establish initial variable - variable is tested against current record year and when it changes/doesn't match, it outputs a subheading for the year
               $yearChecker = " ";
   
               if ( have_posts() ) : 
   
                      while ( have_posts() ) : the_post(); 
   
                   //Variables
                   $mediaReleaseTitle = get_the_title();
                   $link = get_field('pdf_link');
                   $year = get_field( 'media_release_date');
   
                   //Year Subheading - check if yearChecker is not the same as the currentRecord and if not output subheading
                       if ( $yearChecker != $year ) {
                           //Output an end div for accordian-panel if not the first loop
                           if ($yearChecker != " ") {
                               echo '</div>';  
                       }
   
                       //and if not the same year output subheading
                       echo '<h3 class="accordian-title">Media Releases for ' . $year . '</h3>';
                       echo '<div class="accordian-panel>';
                   }
   
                   //Set yearChecker to current record
                   $yearChecker = $year;
   
                   //Loop Output
                   echo '<h4 class="entry-title" itemprop="headline"><a href="' . $link. '" target="_blank">' . $mediaReleaseTitle . '</a></h4>';
                   echo '<div>' . $year . '</div>';
   
   
                   endwhile;
   
   
               endif;
   
   
       	wp_reset_query();
       }
       ```
   
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Search Box Filter via pre_get_posts](https://wordpress.org/support/topic/search-box-filter-via-pre_get_posts/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years ago](https://wordpress.org/support/topic/search-box-filter-via-pre_get_posts/#post-9400217)
 * Ahh OK, thanks
    -  This reply was modified 9 years ago by [powerj](https://wordpress.org/support/users/powerj/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Event Calendar and user input](https://wordpress.org/support/topic/event-calendar-and-user-input/)
 *  [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years ago](https://wordpress.org/support/topic/event-calendar-and-user-input/#post-9393157)
 * You could try the Events Manager Plugin – it has the ability for users to submit
   events and has a calendar view [https://en-au.wordpress.org/plugins/events-manager/](https://en-au.wordpress.org/plugins/events-manager/)
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [CSS Transition](https://wordpress.org/support/topic/css-transition/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/css-transition/#post-8993942)
 * Awesome. Thank you so much [@alchymyth](https://wordpress.org/support/users/alchymyth/)
    -  This reply was modified 9 years, 4 months ago by [powerj](https://wordpress.org/support/users/powerj/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [CSS Transition](https://wordpress.org/support/topic/css-transition/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/css-transition/#post-8989423)
 * Whoops sorry – css for that site looks like this:
 *     ```
       /*Front Page News*/
   
         .home .news-front {
               background-color: $color5;
             padding-top: 2%;
               transition: box-shadow 1s;
               transition: background-color 1s;
             h2 {
                 height: 2em;
                 padding: 0 10%;
             }
           }
          .home .news-front:hover {
               box-shadow: 2px 2px 5px RGBA(0,0,0,.2);
               background-color: $color5;
   
           }
       ```
   
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Sidebar Widget – Exclude main post from list](https://wordpress.org/support/topic/sidebar-widget-exclude-main-post-from-list/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/sidebar-widget-exclude-main-post-from-list/#post-8864085)
 * Awesome. The second part above is beyond me – if I understand correctly this 
   is relative to archive pages.
 * But the first part worked a treat and I think excluding them on single pages 
   only will be fine. Many thanks
 * I tried many different existing featured posts widget plugins (which do the excluding
   out of the box) but couldn’t get them to include one taxonomy AND exclude a term
   from another taxonomy.
 * THANKS AGAIN FOR YOUR HELP
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Accordian jumping to top of page](https://wordpress.org/support/topic/accordian-jumping-to-top-of-page/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/accordian-jumping-to-top-of-page/#post-8855540)
 * THANK YOU SO MUCH. Really appreciate you taking the time 🙂
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Accordian jumping to top of page](https://wordpress.org/support/topic/accordian-jumping-to-top-of-page/)
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/accordian-jumping-to-top-of-page/#post-8851088)
 * Hi [@bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Now on test server [http://webtree.website/tac3/venues/venue-faq/](http://webtree.website/tac3/venues/venue-faq/)
 * Thanks

Viewing 15 replies - 1 through 15 (of 87 total)

1 [2](https://wordpress.org/support/users/powerj/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/powerj/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/powerj/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/powerj/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/powerj/replies/page/6/?output_format=md)
[→](https://wordpress.org/support/users/powerj/replies/page/2/?output_format=md)