Rewrite /keyword1+keyword2.html to search page | .htaccess

Don’t touch the .htaccess file, there’s this neat tool add_rewrite_rule() which you should hook into init: add_action(‘init’, function() { add_rewrite_rule( ‘search+([^/]+).html$’, ‘index.php?my_custom_search=1&s=$matches[1]&submit=Search’, ‘top’ ); }); Right after that you should flush the rewrite rules once ( by saving the permalink settings in Settings > Permalinks or with flush_rewrite_rules() BUT call that function only once and … Read more

show desktop version of website if button is submited

Switch your theme to a mobile-ready theme if a mobile device is detected (you can now enable/disable iPad/tablets).Manual Switcher – to allow your user to manually switch between desktop and mobile versions. Available in 3 versions: widget, option to automatically insert into footer, or template tag.Template functions to help determine which tier of mobile device … Read more

Showing featured image of page’s child’s children page

I created a solution through trial and error, unfortunately having to resort to custom fields. I added a custom field to every child element i wanted to display and used the code: <?php $args = array( ‘post_type’ => ‘page’, ‘meta_key’ => ‘xxxx’, ‘meta_value’ => ‘xxxx’ ); $myPages = new WP_Query($args); while ($myPages->have_posts()) : $myPages->the_post(); echo … Read more

Shortcode is not outputting all of the desired markup

I just tested this code and it appears to be working. Though as others have stated you are missing a semicolon at the end of margin-bottom, which you may want to add to be semantically correct. With that being said, to get the code to output exactly how you want when entered into the WYSIWYG, … Read more