WordPress displays widgets out of whack

WordPress isn’t adding anything that’s messing with it. The problem is that on Ontraport you placed it at the very top in a full-width div. On your WordPress site you placed it in the content area, which is not full width. So the left edge of where it appears is not on the edge of … Read more

Add button linked to single product page on order detail page

The woocommerce_order_details_after_order_table hook receives the WC_Order object as the $order argument. This means you can get the items from the order with $order->get_items(). That will return an Array of WC_Order_Items. From this you can get the associated product of the first item, which you can use to get its permalink, to which you can append … Read more

catch urls with specific pattern and show specific content for them by plugin

There might be other ways, but what I would so is create a rewrite rule in your .htaccess file, something like: RewriteRule ^items/([0-9]*) /items/?page=$1 Now your user sees: http://mywordpress_site.com/items/1/ But behind the scenes, your site sees: http://mywordpress_site.com/items/?page=1 Then in your shortcode: $page = (int) $_GET[‘page’]; WP has tools in it to manage rewrites, and it … Read more