Gal Baras
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] Problems displaying ACFAs you can see in the documentation,
acf_get_fields()returns an array of objects. You must then loop over that array and construct a string from it. The same is true forget_fields()(see here).Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] Problems displaying ACFThe function
is_category()“Determines whether the query is for an existing category archive page”, whilecontent-single.phpseems like a template for single posts, so the code will have no effect.Change
is_category()toin_category(), which checks if the current post is within any of the given categories, and it should work.Forum: Plugins
In reply to: [Unattached Media Manager] Speeding up manual media cleanupHi Sungraiz,
Wow, your support is top notch. I continue to be impressed.
In fact, much to my embarrassment, I found out that the image I mentioned above is a duplicate. The other version is attached to the custom post type and discovered by the plugin as such.
To be sure, I’ve just crawled my site with SEO Macroscope, which finds all the images referenced from front-end pages somehow linked from the home page, and the only images listed by the plugin that I didn’t want to delete were those in theme files and in Newsletters’ messages and templates.
While looking for other possible content tables, I noticed
wp_wpmlhistory, a custom table created by the Tribulant Newsletters plugin for storing messages, andwp_wpmlthemesfor email. Scanning the endless variety of plugin-created custom tables might prove hugely difficult, so what to do?A simple solution would be a Unattached Media Manager setting that lets the administrator add table.field entries, e.g.
wp_wpmlhistory.message,wp_wpmlthemes.content(comma separated or one per line).However, a better way would be to offer a list of database tables to choose from, and once a table is selected, a list of its fields. If this too much to ask, at least until you have enough active installations, maybe make this as a Pro enhancement?
As a bonus, the plugin can discover some popular plugins that have their own tables and simply scan them “out of the box”.
Forum: Plugins
In reply to: [Broken Link Checker] Getting 10 reports each time the cloud scanner runsI’ve switched my sites back to the local checker, so closing this thread. Thank you for the support.
Forum: Plugins
In reply to: [Broken Link Checker] Quickly exclude a domainHi Amin,
Just to recap:
- I was using the local checker and I was very happy with it, other than having to manually enter domains to exclude whenever links were broken due to 403 errors
- I asked to have a quicker (not more advanced) way of adding domains to the exclusion list
- The discussion then turned to what the cloud checker could do
- I tested the cloud checker, and it did not discover all the links the local checker had, skipping entire domains that weren’t documented
- I’ve gone back to using the local checker, and I’m still hoping for a quicker way to exclude domains, as well as some way to get around the 403 errors, either by using a different user agents or by reaching some agreement for the rejecting domains to respect the checker’s agent
I hope this clarifies where we’re at.
Cheers,
GalForum: Plugins
In reply to: [Unattached Media Manager] Speeding up manual media cleanupAfter updating to the latest version and rescanning the site (thank you for adding the filters), I realised that custom post types weren’t being considered.
I have a custom post type for projects, created by the theme. The image https://www.get-business-online.com/wp-content/uploads/2025/07/tsoof-baras.jpg is embedded in https://www.get-business-online.com/work/tsoof-baras-music/, but is being listed as potentially unattached.
You can fix this either by not limiting
post_typetopostwhen checkingwp_postsOR (better) checking what other post types are registered, letting site admins check them in the settings, and including them in scans.The following code should help accomplish this on the settings page (add on line 655 of includes/admin/class-unmam-admin.php):
<?php
$post_types = get_post_types( [ 'public' => true, '_builtin' => false ], 'objects' );
foreach ( $post_types as $type => $type_def ) {
echo '<br><label>
<input type="checkbox" name="mui_scan_' . $type_def->name . '" value="1" ' . checked( $settings['scan_' . $type_def->name . 'post_content'] ?? true ) . '>
' . esc_html( $type_def->label, 'unattached-media-manager' ) . '
</label>
';
}
?>Note the use of
esc_html(), because the plugin’s language file doesn’t contain translations for custom post types. I’m not sure how to get around this, but on sites using non-English languages, the labels are likely to be in the site’s language anyway, so maybe this isn’t a big issue?Obviously, more code is required for saving the settings and using them when scanning. To make this even better/easier, you can change the
scan_post_contentsetting into an array of post types, as this will allow for dynamic code.Forum: Plugins
In reply to: [Broken Link Checker] Quickly exclude a domainHonestly, the cloud scanner feel more about WPMU DEV than about users. It’s easier for you guys to develop and control, and keeps users coming back to your hub. In short, it’s good for business.
Site admins, on the other hand, would rather do everything on their own site. The advanced URL/status exclusion system would make the local scanner perfect in my book, and there’s no technical reason for not implementing it.
Forum: Plugins
In reply to: [Unattached Media Manager] Scanning post metaI’m marking this thread as resolved and merging it with https://ww.wp.xz.cn/support/topic/speeding-up-manual-media-cleanup/
Forum: Plugins
In reply to: [Unattached Media Manager] Speeding up manual media cleanupHi Sungraiz,
Thank you for this update.
Personally, I use the Site Editor to create the various patterns and templates, and then export the code to theme files and reset the templates, so scanning the respective wp_posts entries will miss images being referenced in theme files.
It’ll be really good to add theme file scanning.
Don’t worry. When we’re done here, I will definitely post a glowing review 😊
Thanks again,
Gal- This reply was modified 1 week, 6 days ago by Gal Baras.
Forum: Plugins
In reply to: [Broken Link Checker] Getting 10 reports each time the cloud scanner runsHi Nithin,
All scheduled changed to 1am.
I’ve sent you all the actual messages, instead of screen captures. This way, you can get all the information you need.
Cheers,
GalForum: Plugins
In reply to: [Broken Link Checker] Quickly exclude a domainSo here what things boil down to:
- The local scanner finds more issues, but lacks advanced URL/status filtering
- The cloud scanner is faster and more configurable, but doesn’t find every broken link
Since the whole point of the plugin is to find broken links, I prefer being hassled by false positives than missing broken links.
As plugin developers, though, it would make sense for the cloud scanner to discover at least everything the local scanner does (maybe more) and cover all of its features, only better. Right now, this doesn’t seem to be the case, unfortunately.
Forum: Plugins
In reply to: [Broken Link Checker] Quickly exclude a domainHello Amin,
Jair asked for a URL to check, and I’ve provided 2 of them. Can you please continue to investigate?
Also, the documentation isn’t listing https://www.youtube.com, and possibly other sites that have been added since it was created. Please update the documentation with the full list.
Thank you,
GalForum: Plugins
In reply to: [Broken Link Checker] Getting 10 reports each time the cloud scanner runsHello Amin,
I couldn’t delete the schedules, so I disabled them, and when I configured them again, the settings were already there as before. Is this what you meant?
Looking at the email messages, they are coming from the correct user on each site. I’m not sure what conflict could be happening here, given that in some cases, the messages are different, which implies multiple scans, rather than duplicate emails.
Seeing only the last scan isn’t enough for debugging, as you can probably see in this instance. Please forward this to the developers as a request.
Thanks again,
GalForum: Plugins
In reply to: [Broken Link Checker] Quickly exclude a domainSince I switched to the cloud scanner and those issues happened a long time ago, a simple URL you use is https://www.youtube.com/watch?v=nonexistent or https://youtu.be/nonexistent, bot of which are not found when visited maually.
Forum: Plugins
In reply to: [Broken Link Checker] Quickly exclude a domainHi Nithin,
The list in the documentations includes https://youtu.be/, but not https://www.youtube.com/, yet URLs in the latter domain are listed as broken by the local scanner, but not the cloud scanner. I’m pretty sure this list isn’t exhaustive.
Having a “skip list” means that the report could be missing some links that are actually broken (again, I’ve had this before with YouTube videos). It would be very useful to reach some sort of agreement with the skipped site about a user-agent or URL token that will allow those sites to be properly checked.
Either way, it would really be useful to see ALL the links in the report, including those that aren’t consideted broken. Nothing creates trust like full transparency, and the information is readily available to the scanner (how else would it be able to check them?).
Thank you,
Gal