msmiarowski
Forum Replies Created
-
Forum: Plugins
In reply to: [Broken Link Checker] Relative Links/Paths@wpmudev-support9 thank you for the suggestion. I’ve tried the suggestion (in multiple ways) but it did not seem to work for what I needed. Maybe I’m not implementing it properly?
I also get this warning using the WP debugging option in the wp-config file:
Warning: Use of undefined constant DOING_CRON – assumed ‘DOING_CRON’ (this will throw an Error in a future version of PHP) in /app/wordpress/wp-content/themes/intranet-wp-theme/functions.php on line 50
Do you have any suggestions that may help me make sure I’m implementing this properly?
Thank you,
MattForum: Plugins
In reply to: [Broken Link Checker] Relative Links/PathsHi @wpmudevsupport12 (Patrick),
I apologize, for the delay, I had been rather ill for the last few weeks and haven’t been working much.
The original issue isn’t resolved and is still happening. It does not seem to be an issue with any plugin but rather the two lines of code in my functions.php file forcing the use of relative URLs
add_filter(‘post_type_link’, ‘wp_make_link_relative’); // Custom post type urls
add_filter(‘page_link’, ‘wp_make_link_relative’); // Page urlsWhen I disable these the plugin works as expected, however I only want our content managers to use relative URLs (for internal links). So forcing relative URLs is honestly the easiest way so they don’t have to think about it.
Forum: Plugins
In reply to: [Broken Link Checker] Relative Links/PathsHi Kris,
Yes, it is a custom content type, and yes, I had the content type selected under Settings > Link Checker > Look For Links in. I also set it for published posts only. I have the settings selected for 3 custom content types, Pages, and Reusable Blocks.
I’m using WordPress 5.9, PHP v7.3, MySQL v8.0 as that is what my hosting provide has available for me. My local and dev/testing environment are set up the same, this is not a production site yet, but it will use the same versions I listed above.
More info: this is set up to be a headless WP, therefore WP is not building the UI. I am using this as just a CMS to manage our content and build REST API endpoints to query data for a few different apps/sites. This will be a central hub for content, so content authors only have to go to one CMS to update content. For that reason, in my functions.php I did force relative urls via this method:
add_filter(‘post_type_link’, ‘wp_make_link_relative’); // Custom post type urls
add_filter(‘page_link’, ‘wp_make_link_relative’); // Page urlsBest,
Matt