Tagged: admin menu, Portfolio
-
AuthorPosts
-
April 28, 2016 at 10:51 pm #624035
Hey,
I came across a weird bug since updating to the latest version of enfold and wordpress (i disabled all plugins). The Portfolio Items menu item was missing from my wordpress dashboard.
I found this post that said that if two admin menu items have the same order number assigned one of them, one won’t show. I tried using the code they suggest on this post, but it didn’t help get the portfolio to work. https://www.wpfangirl.com/2015/help-my-custom-post-type-disappeared-from-the-admin-menu/
I then decided to go to register-portfolio.php inside the includes/admin folder. I added the ‘menu_position’=> 33, to the arg array below and it reappeared in the menu.
$args = array( 'labels' => $labels, 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug'=>_x($permalinks['portfolio_permalink_base'],'URL slug','avia_framework'), 'with_front'=>true), 'query_var' => true, 'show_in_nav_menus'=> true, 'menu_position'=> 33, 'taxonomies' => array('post_tag'), 'supports' => array('title','thumbnail','excerpt','editor','comments') );
Is there a way to do this in the child theme’s functions.php file instead?
May 2, 2016 at 11:13 am #625637Hey dustingrof,
Are you still having the same issue when you do not make the changes?
If so, please create a temporary admin login and post it here privately.Best regards,
YigitMay 4, 2016 at 8:55 am #626976Hey, I was about to post you some credentials and let you know that I was still running into the same issue when I removed the code. But then I looked down at the bottom of my page and noticed my wordpress version was at 4.2.2.
I thought that was weird, because I was not getting the usual update notification at the top. This site of mine is hosted on my clients server rather than my own. I found this thread and am going to get updated before I get back to you. Note the solution to the problem is way down at the bottom.
https://wordpress.org/support/topic/wp-updates-not-showing-latest-wp-version-available
May 4, 2016 at 9:05 am #626990All is good now that I ran a Wordfence scan and restored my core files to the repository version. I was then able to get updated to the most current version of WordPress and the problem went away.
Hope this helps someone else in the same situation!
May 5, 2016 at 6:12 am #627620Hi,
Great, glad you got it fixed and thanks for sharing the solution, much appreciated :-)
Regards,
RikardMarch 4, 2021 at 2:18 pm #1285407Hei, this is s super old theread. But is it possible to change the position of the portfolio in the backend menu under Posts?
March 5, 2021 at 4:57 am #1285599Hey Raph,
I think I responded to this already. Can you add a screenshot of what you need?
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.