traone
Forum Replies Created
-
Forum: Reviews
In reply to: [Safe Report Comments] Good, but missing translationHello,
would appreciate the ability to translate too. I did go through the code and the translated strings are not popping up in PoEdit. Also you should pass a text-domain to the translate function, and variables should not be passed to the function either.For example this is wrong: __($this->var);
Should be: __(‘some string’, ‘plugin-text-domain’);I’m considering to make the plugin translatable myself, if this topic is not addressed in reasonable time.
Forum: Plugins
In reply to: [Media Tags] Deprecated: Function split()And looks like another one at line 210.
$r[‘media_types_array’] = split(‘,’, $r[‘media_types’]);
All other plugins besides Types deactivated and using Twenty Thirteen theme, still not working.
Forum: Fixing WordPress
In reply to: wp_get_nav_menu_items() returns an empty array under tags archiveTurned out, that this is caused by a plugin: Add Tags And Category To Page And Post Types.
I’ve sent the author a bug report about this.
@esmi Thanks for confirming!
Forum: Fixing WordPress
In reply to: wp_get_nav_menu_items() returns an empty array under tags archiveOops sorry for the bump.
Dev site is currently using TwentyThirteen theme and can be found: https://vihjepalvelu.restate.fi/
Category archive: https://vihjepalvelu.restate.fi/category/urheilu/amerikkalainen-jalkapallo/
Tag archive: https://vihjepalvelu.restate.fi/tag/amerikkalainen-jalkapallo/
In header.php i’m getting the menus with the vp_get_nav_items() method. On the frontpage, pages and posts it is working as expected, but under category or tag archive, wp_get_nav_menu_items() is returning an empty array for each nav_menu.
I have added this to header.php:
<div class="test"> <pre> <?php $menus = vp_get_nav_items(); print_r($menus); ?> </pre> </div>
Forum: Fixing WordPress
In reply to: Missing pages in Appearance->Menus->PagesI changed the $per_page value from 50 to 5000 in wp-admin/includes/nav-menu.php line 587 and the problem disappeared.
Forum: Fixing WordPress
In reply to: Missing pages in Appearance->Menus->PagesI’m experiencing this in some degree too.
I have several top-level pages representing persons and all of them have a biography subpage. Currently i’m unable to build the menu, for most of the subpages are not associated correctly with their corresponding parent pages.
All pages have an order number set. And in the Pages section everything is as it should. wp_page_nav() prints out correctly.
Here is a link to a screenshot of the situation where the pages listed should all be subpages for a person: