You don’t need to do any programming for something as simple as this. On the menu page, create a menu with these links. Then on the widget page, use the menu widget that comes with WP to add it to your sidebar.
Related Posts:
- display most popular tags in two columns
- WordPress menu deletes when trying to add a hook
- dynamic sidebar not showing anything
- Custom Loop through category menu to include sub categories
- WordPress widget/sidebar dividers?
- Where do posts get the sidebar from?
- Missing sidebar parameter “fix” – before_content
- Dynamic Sidebars & Echo
- Child page menu in sidebar
- Hide subcategories (widget)
- How to determine if the sidebar is empty? Or not active?
- Removing sidebar on category pages
- Add a select-option to the default widgets
- Stuck with sidebar registering
- Don’t display a sidebar widget when on a specific page
- Retrieve the whole widget sidebar and pass it inside an html
- Loading Widgets Via Child Theme
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- PHP drop down menu for my get_category child of
- Widget Logic – display on page and all child
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Beyond widget side menu editing, with the php page, custom template
- how to run a php code in widget?
- My custom widget won’t stay in the widget area after I refresh the widget page
- How to change links in the 3 main categories, on widget category, to a javascript function call
- Create Image Uploader for Widget
- How to remove a metabox from menu editor page?
- How to create a widgetized sidebar for every category dynamically?
- Displaying a variable stored in functions.php inside widget
- How to add active class to custom menu using while loop and wp_list_pages
- Categories Template Assistance
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- Problems with function on function.php
- Use template for posts with a particular category grandparent
- Count widgets of a certain type
- How to group 2 radio buttons in a widget?
- custom widget on the footer
- Custom category code not showing all posts
- Add data attribute to each li in menu
- Pass Category Name, Description and Photo into variables to pass to jQuery
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Remove metabox from WordPress menu editor page?
- Applying A Category to Existing Posts Where Page Title Matches Regex
- How to add an arrow to menu items has submenus
- wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu
- Let Users Choose Post Categories
- Display most popular posts of category
- get taxonomy thumbnail and use it as a variable in code
- New walker for walker_nav_menu to change inside container data
- Add data-id attribute to child page links
- How to remove sidebar primary widget on Mobile on category page [closed]
- Only show size attributes in product box woocommerce when available
- Argument for if term-> have child?
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- Echoing a CSS class based on category of post in a list
- Notice: Trying to get property of non-object
- Nav-Menu not showing up
- Show different website layout if no sidebar added
- Showing Subcategory Name/Link Instead of Parent Category
- WordPress custom taxonomy
- Finding and removing duplicates within WP Arrays
- Compare current post Category in select menu
- Hard-coding a shortcode as the last menu item in primary navigation?
- Get the list of post categories
- Nav Walker that shows only children and siblings of top level parent menu item
- Woocommerce. Get a list of products in the current category on the archive page and product page
- how to changes mobile menu toggle breakpoint in WordPress
- How to display already created menus via php?
- How to show categories and date on posts
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- Allow two posts (from different categories) to have the same slug
- How to enable HTML tags in category description without breaking the category page
- Trying to show the category of a post in the post display
- How to let mobile navigation menu close when link is clicked?
- Add element after navigation element title don’t works like I expect
- Blog Image and Title in Right Sidebar
- is_user_logged_in() not working in homepage
- How to create a sub-page of sub-page?
- Featured Products not showing up in “Featured” area of homepage
- (Who to follow) Twitter widget
- Code works on page-example.php by not category-example.php
- get_category display only 1
- WordPress using get_term to retreive slug not working as expected
- Showing the project type in HREF
- wp_nav_menu doesn’t work in a duplicate server
- How I can add div to menu?
- Front end post submissions do not get submitted in the category
- WP_Widget dynamic field array with external AJAX
- Using ‘array’ method in wp_nav_menu causes it to disappear
- Trying to exclude posts from a category on the home page
- Template from scratch: Sidebars not showing widget
- Name Input from widget displays Sidebar name instead of saved data
- WordPress – show number of comments for each post in widget
- Showing Subcategory’s Name and Link Instead of Parent Category’s
- WP_Nav Highlight Parent Issue
- if is_home(), change class of menu-item-225 of wp_nav_menu
- Change order that the menu is generated with wp_list_pages
- I am extending Walker_Nav_Menu: How can I get the number of children elements of the current item?
- How to define template directory in this widget code
- Remove /category/ from category (archive) page URLs (without using a plugin)