Forums
Forums / Plugin: Pager Widget / Parent title is wrong
(@cornwell)
9 years ago
This relates to version 1.7.3 of the widget, the current version at the time of writing.
The %title on the parent link shows the name of the page we are on, not the parent page (the link itself is correct).
The solution would appear to be to replace (line 108) $parentTitle = $post->post_title; with $parentTitle = get_the_title($post->post_parent);
(@figureone)
Good catch! I’ve put this older plugin’s source on github, and fixed the problem here: https://github.com/uhm-coe/pager-widget/commit/a489f9d1e91ed836862a59ff03be56ac64565fcc
Version 1.7.4 is now out with the fix. Thanks for your contribution! https://wordpress.org/plugins/pager-widget/changelog/
The topic ‘Parent title is wrong’ is closed to new replies.