Hugh Lashbrooke
Forum Replies Created
-
Forum: Reviews
In reply to: [Export Plus] Still Works 2023!!!Ha – thanks for using it and writing a review! I haven’t used this plugin in years, but I’m honestly not surprised it still works – I wrote it to use WP_Query for everything and WordPress has a strong commitment to backwards compatibility so (in theory) that should never stop working.
I really appreciate you leaving this review ??
I found a fix for this, but I can’t guarantee it will work everywhere. If you add this line to a CSS file for your dashboard it will fix the height of the taxonomy boxes:
.css-1n451hs { height: auto; }
I’m having the same issue on WordPress 6.3. There are large spaces in the editor sidebar around any hierarchical taxonomy, just like in the video linked above.
It only happened after the 6.3 update and I’m on the latest plugin version (v2.0.2). Mine is on Pressable hosting using a default theme, and I’ve tested it on a local install with no other plugins active and I have the same issue.
Your CSS code is almost correct – you just need to add dots for the two class names and then set the background colour to
none
astransparent
isn’t an accepted value as far as I’m aware..wp-block-button.style-outline:hover { background-color: none; }
That should make the link colour transparent on hover.
Forum: Fixing WordPress
In reply to: Course PlaylistHappy to help!
Forum: Fixing WordPress
In reply to: Course PlaylistHi Sara,
You could definitely do all of this from a single WordPress website. For the course dies of things, you will need a LMS plugin – there are some great options here: https://www.ads-software.com/plugins/search/lms/ – many of those have premium versions with additional features.
You won’t actually need a YouTube plugin to add YouTube videos – just adding in the link to the video in a new paragraph automatically embeds the video for you. The same goes for all major video hosting platforms (Vimeo, etc.).
Forum: Developing with WordPress
In reply to: Block supports – why are features disabled?I’m not sure of the answer here, but your best way to find the answer and possibly have this changed would be to log an issue on Gutenberg’s GitHub repo here: https://github.com/WordPress/gutenberg/issues
Forum: Fixing WordPress
In reply to: 404 Error Page Not FoundIt looks like this most likely will be an issue with your theme. The theme will be controlling your templates, and the template in use there probably doesn’t account for pagination. You will need to contact your theme developer to ask them about this.
Forum: Fixing WordPress
In reply to: Cart Icon DisappearingIt looks like your site is using WooCommerce. This issue could either be related to WooCommerce itself, one of your other plugins, or to the theme you’re using. You will need to post on the WooCommerce support forum for assistance here: https://www.ads-software.com/support/plugin/woocommerce/
Forum: Fixing WordPress
In reply to: Page w/multiple post queriest: how to only show unique?There will probably be multiple solutions for this, but the way I would probably tackle it would be to create an empty array variable at the top of the page:
$displayed_posts = array();
Then as you loop through each post in your queries, add their IDs to that array. So inside the loop, you would have something like this:
$displayed_posts[] = $post->ID;
or
$displayed_posts[] = get_the_ID();
(depending on how you’re using the loop)
This means you will build up an array of IDs of posts already shown and it will be added to in each new query.
Then in every query on the page after the first one, you can you the
post__not_in
parameter to exclude any posts that you have already shown:'post__not_in' => $displayed_posts,
The
post__not_in
parameter takes an array of post IDs and excludes them from the query so they won’t show up at all.There will probably be some other methods, but that feels like the cleanest one to me. If you are needing to use that array over multiple PHP files, then you can instantiate it as a global at the top of each file you need it in:
global $displayed_posts;
That way it will be available in all files and templates and will remain consistent.
Forum: Fixing WordPress
In reply to: Custom category template nameThe easiest way to share a screenshot would be to upload it to your site’s media library and then share the URL of the file in this thread.
What I suspect may be the issue here is that you’re creating the new category while you have the site editor open. In order for the site editor to know about it properly, you would then need to refresh the page. That may not be the problem, but I feel like it could be in this case.
Forum: Fixing WordPress
In reply to: Custom category template nameI went to the link you provided, and I don’t see the issue there: https://www.ticknalllife.co.uk/archaeology/ – if it still persists could you provide a URL that shows it? Or possibly provide a screenshot?
Forum: Fixing WordPress
In reply to: Calling variables depending on url slugYou would definitely need to write some custom code to do this for you. This page has two methods for getting the slug of the current post/page: https://blog.wplauncher.com/get-current-page-slug-wordpress/ – you can then use that to affect the logic for outputting the markup and content that you need.
Forum: Fixing WordPress
In reply to: Change Blog Categories ID so I can reorder titlesAs far as I am aware there is no built-in way to reorder categories (or any taxonomy) in WordPress. In order to do this, you will need to use a plugin like the one suggested above, or write some custom code to handle the order for you.
Forum: Developing with WordPress
In reply to: Multiple nonces with the same action nameHaving two nonces with the same
action
value will not cause any conflicts, so this is fine to do. So long as you keep yourname
(second parameter) different, you’ll be OK, and there won’t be any conflicts.That being said, for security purposes, I would recommend having a different action value for each nonce – purely for the sake of making them harder to crack. That isn’t strictly necessary though.