GeraldS
Forum Replies Created
-
I did. The issue was resolved and a fixed version has already been released.
Forum: Fixing WordPress
In reply to: 5.5 Update breaks custom page parametersThanks Olga, that was exactly what I needed. I managed to fix it using this in my functions.php:
function custom_rewrite_basic() { add_rewrite_tag('%course_id%', '([0-9]+)'); add_rewrite_rule('^course/([0-9]+)/?', 'index.php?page_id=5&course_id=$matches[1]', 'top'); } add_action('init', 'custom_rewrite_basic');
And then I could use the variable where needed with this:
$wp_query->query_vars['course_id']
Much cleaner than what I had before, and probably more future proof.
Forum: Fixing WordPress
In reply to: 5.5 Update breaks custom page parametersI reproduced the problem in a testing environment:
Those two WordPress installations are identical. Extracted WordPress, ran the installation, created the page
Course
, copied a page template in the template folder, added the RewriteRule to the .htaccess file.Both files are available here: https://gist.github.com/schneidr/3b02f094c38ec614a0279dffde5927df
(of course the RewriteBase differs, but that’s the only difference)If you follow the links you’ll see that the 5.4 installation stays at
/course/123456/
and the course data is displayed correctly, while on the 5.5 installation a redirect to/course/
occurs.Forum: Fixing WordPress
In reply to: 5.5 Update breaks custom page parametersA redirect is exactly what I don’t want. The URL is supposed to stay
/course/12345
. And that worked for years until I upgraded WordPress to 5.5.Forum: Plugins
In reply to: [Liveblog] Social Embeds No Longer WorkingThe embed works after reloading the page. When posting a link as an update, or when the new update is shown for a visitor only the link is shown. After reloading the page the embed works.
I have the same problem with the same configuration. Was this problem solved eventually or did you not get any answer at all?
Regards,
GeraldForum: Plugins
In reply to: [Antispam Bee] Wrong notification and link on DashboardThe notification in the dashboard shows the total amount of blocked comments, not the current count in the spam folder.
I’d prefer to see both numbers (maybe as “X blocked, Y total”). I also would prefer that the link goes to the spam folder instead of the settings page … once the plugin is set up I don’t need to go to the settings page every day, plus that would be the behaviour someone who switches from Akismet would expect.
My guess would be that, when an image is set as featured image, the created thumbnail is too small to be used as a header image.
I did some further testing:
Line #92 in header.php looks like this:
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' )
In the main blog it returns this array:
array(4) { [0]=> string(96) "https://playground.********.de/wordpress/wp-content/uploads/2013/08/P1140625-1280x957-940x198.jpg" [1]=> int(940) [2]=> int(198) [3]=> bool(true) }
In the second blog it returns:
array(4) { [0]=> string(109) "https://playground.********.de/wordpress/test/wp-content/uploads/sites/2/2013/08/P1140625-1280x957-604x270.jpg" [1]=> int(442) [2]=> int(198) [3]=> bool(true) } bool(false)
This image is too small to be used as a header image, hence the default header is used.
Forum: Fixing WordPress
In reply to: Custom Field Won't AddI (guess) I have the same problem, maybe this helps you:
https://www.ads-software.com/support/topic/strange-problem-with-custom-fields
Forum: Plugins
In reply to: [Flattr] [Plugin: Flattr] Fatal error when editing postThe problem only exists when the plugin is active. When I deactivate it I can edit the post.
Forum: Plugins
In reply to: [iCal for Events Manager] Not working.It doesn’t work anymore because the database structure of Events Manager changed. I posted my modifications here:
https://schneidr.de/2012/04/ical-for-events-manager-anpassen/
(Post is in german, but the only relevant part is the code snippet)
Forum: Plugins
In reply to: [iCal for Events Manager] [Plugin: iCal for Events Manager] Not workingIt doesn’t work anymore because the database structure of Events Manager changed. I posted my modifications here:
https://schneidr.de/2012/04/ical-for-events-manager-anpassen/
(Post is in german, but the only relevant part is the code snippet)
The plugin is configured site-specific. I have to assume it happened after a plugin update since we rather look directly at Piwik for the stats and it was counting fine.
For now we got it working again by pointing the url of the piwik installation to bbb.de/piwik/ instead of aaa.de/piwik/, which happens to be the same installation.
No, it doesn’t. Thanks anyway.