StefanCrain
Forum Replies Created
-
Downloading the plugin from github worked.
I wanted to make sure you weren’t talking about a specific commit / pull request from the project – here’s the link to the project in case anyone else has this problem. https://github.com/tareq1988/WP-User-Frontend
Could you please send a link to the github project that fixed this?
I’m also seeing this bug in the wp user front-end plugin.
When anyone other then an Administrator or Editor tries to delete the post from the “dashboard” they are greeted with the message
You are not the post author. Cheeting huh!
, how wonderful !I’ve tried Editing the capabilities of the users, Something weird is happening here… When I change the capabilities of the user to allow posts to be deleted that were created by another user this error goes away, but the author that submits the post shows up as the author in the wp backend so its only a semi-workaround, And deff not a permanent fix.
Any thoughts ? need more info ? please let me know.
Forum: Themes and Templates
In reply to: Add the "Title Attribute" in the menu$menu_name = 'main_menu'; if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) { $menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); $menu_items = wp_get_nav_menu_items($menu->term_id); //print_r($menu_items); $menu_list = '<ul id="nav">'; foreach ( (array) $menu_items as $key => $menu_item ) { $title = $menu_item->title; $url = $menu_item->url; $title_alt = $menu_item->attr_title; // your attribute $menu_list .= '<li><a title="' . $title . '" href="' . $url . '">' . $title . '<span>' . $title_alt . '</span></a></li>'; } $menu_list .= '</ul>'; } else { $menu_list = '<ul><li>Menu "' . $menu_name . '" not defined.</li></ul>'; } // $menu_list now ready to output echo ($menu_list);
this worked for me, im not sure i put the title attribute where you wanted, but its there.
to see all the attributes for the menu array un comment that print_r (not for production, just testing)