Ben Hutchings
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Monitor] PermalinksRegardless of whether it’s RIGHT or WRONG Gosta, if you are using Yoast SEO you can exclude the Download Categories (dlm_download_category) from the sitemaps by going to:
- WP Admin > SEO > Search Appearance
- Then set “Show Download Categories in search results?” to ‘No’
If you want to remove your existing results from Google’s results you can do so via your Search Console account.
Forum: Plugins
In reply to: [Tabby Responsive Tabs] Center TabsHi Jessy, I’m looking to do something similar, and this got things rolling:
For the style
.responsive-tabs ul.responsive-tabs__list
add:display: flex; justify-content: center;
Note
justify-content: space-around;
orjustify-content: space-evenly;
works well too. Not sure about browser support for ‘evenly’.Then to make this change work with small screens, modify this style to fix the specificity:
@media (max-width: 767px) { .responsive-tabs .responsive-tabs__list { display: none; }
to:
@media (max-width: 767px) { .responsive-tabs ul.responsive-tabs__list { display: none; }
Probably not perfect, but a start.
Forum: Reviews
In reply to: [Tabby Responsive Tabs] Simply, nice and perfect!Didn’t you mean “purr-fect”?
Forum: Plugins
In reply to: [WP2Static] Error in s3 uploadHey Leon, thanks, I can confirm that 1.8 does upload to S3 fine (for me).
It took AGES and I thought there was a problem, but turns out I was uploading a ton of node-modules and a .git repo by accident! I’ll try and working in some sort of ‘Exclude these files’ functionality soon, and maybe PR it if you’re interested.Cheers!
Forum: Plugins
In reply to: [WP2Static] Using Additional Urls fieldBrilliant! yes it is, and works perfectly. Thanks a lot!
Forum: Fixing WordPress
In reply to: register_post_type rewrite pages paginationHi, I just faced something very similar, and it turned out I needed to manually add a Rewrite to handle the paging. For example:
function rewrite_cpt_paging() { add_rewrite_rule('^catering/page/([0-9]+)/?$', 'index.php?pagename=catering&paged=$matches[1]', 'top'); } add_action('init', 'rewrite_cpt_paging');
If you need to add paging to several rewritten CPTs at once, you could use something like this:
function rewrite_cpt_paging() {
add_rewrite_rule(‘^(catering|other-cpt1|other-cpt2)/page/([0-9]+)/?$’, ‘index.php?pagename=$matches[1]&paged=$matches[2]’, ‘top’);
}
add_action(‘init’, ‘rewrite_cpt_paging’);Maybe… give it a try!
Forum: Plugins
In reply to: [WP2Static] Using Additional Urls fieldHi Leon,
Really pleased to see the addition of S3 exports other tweaks. Your work-around for exporting ‘additional’ items works well.
Would you say that ‘Additional Urls’ doesn’t work at all at the moment, or are there just a very limited number of ways it can be used? If it does sort-of work, I’d still love to see an example of how things should be pathed to.Thanks,
BenForum: Plugins
In reply to: [Contact Form 7] In next version remove false "configuration errors"Going right back to the point of the original post, I would like to see a way of turning this configuration validation off from the CF7 settings in admin area please. There are some instances where errors are shown incorrectly when a client’s mail configuration is pretty complex (and has appropriate SPF entries etc).
For now, we can do it with the following filter:
add_filter( 'wpcf7_validate_configuration', '__return_false' );
Hope to see it as optional in next version, thanks for all the hard work!
Forum: Reviews
In reply to: [Custom Field Suite] Sorry not workingPlease re-rate this, you can click on the stars when you’re logged-in to change your rating I believe. No way it deserves a 1-star.
Forum: Plugins
In reply to: [Shopp] Fatal error in admin pages after upgrading to WordPress 4.4Hi people, a fix is brewing, keep up to date here: https://github.com/ingenesis/shopp/issues/3410
Forum: Plugins
In reply to: [HTML5 Responsive FAQ] Causes Custom Sidebars (only) to disappearHi Ishan, I’ve just worked with Roberto to find and fix this bug. What really needs to happen is that ‘HTML5 Responsive FAQ’ should reset it’s $faq_query after it’s been used.
For example, after line 42 of include/hrf-faq.php I would suggest you add:
wp_reset_postdata();
In the meantime, developers facing this problem can add
wp_reset_query()
before their custom loops. This will be needed for any functions that do a custom query like wp_list_pages.Cheers!
BenForum: Plugins
In reply to: [Shopp] Enlarging Images Bug?Hi, You should be able to specify a ‘fit’ parameter when calling the image. Here are the docs for all the options:
https://shopplugin.net/api/product-coverimage/
Please let us know if that helps ??
Hi Adi,
Firstly if you’ve not seen the API docs, please have a look here: https://shopplugin.net/api/ – most things are documented well with examples. You’ll see that the structure isn’t intentionally hard to understand or work with, it’s just built with Classes and Objects the way any project of this size needs to be.
Have you posted a question on the wordpress support forum?. If you haven’t I would suggest that’s the first thing to do. I personally find that StackOverflow is a good place to get fast answers, provided you are willing to explain what you’ve already tried.
Hope you give Shopp another chance, I’ve been using it as a customer, as a helpdesker, and sometimes getting involved in fixing things for 4 years now and love it. If you want to get involved why not take a look at the Github repo where you’ll find lots of activity!
Cheers,
BenForum: Plugins
In reply to: Assign Post to Specific UserProbably the best and most complete reply I’ve ever seen to a question there Roger!
Brilliant brilliant brilliant that’s exactly what I needed, and I only wanted to turn off one meta-box, not all of them, so did this:
add_filter( 'custom_post_type_onomies_add_cpt_onomy_admin_meta_box', 'uc_cpt_onomy_admin_meta_box', 1, 3 ); function uc_cpt_onomy_admin_meta_box($add_meta_box, $taxonomy, $post_type) { if ($taxonomy == 'roomtype') {return false;} else {return $add_meta_box;} }
Thanks!