WordPress Optimized!

More than just another WordPress site

Menu
Skip to content
  • Home
    • Privacy
    • Disclaimer
  • Index
  • Plugin
  • Errors
  • Troubleshooting
  • Security
  • Code Snippet
  • Performance
  • 2BearStudio

Category: Code Snippet

  • Code Snippet

How to get content from WordPress submenu only

  • Posted on February 5, 2014September 15, 2014
  • by Jerry Wang

wp_nav_manu() displays a navigation menu. We can call different menu by assigning a different $menu. But the is no straightforward function to get only a submenu. For example, we may want to display a submenu on the sidebar for easier navigation.…

Read More
  • Code Snippet

Dynamically Add Menu Items in WordPress

  • Posted on September 23, 2013September 27, 2013
  • by Jerry Wang

One customization in membership website is to add login / logout link somewhere on the web page. Most common place to add this link is navigation menu. Login / logout menu item can’t be added via Appearance / Menus in…

Read More
  • Code Snippet

Hide the Admin Bar in WordPress

  • Posted on September 21, 2013October 1, 2013
  • by Jerry Wang

Once we start membership integration, adding non-admin users, the admin toolbar seating on top of the page for logged in users becomes annoying. The toolbar for regular user such as subscriber provides only links to edit profile or link to…

Read More
  • Code Snippet

WooCommerce: Disable Product Review Tab

  • Posted on September 2, 2013October 1, 2013
  • by Jerry Wang

When working with plugin like WooCommerce, it is hard to avoid customization, a lots of it. In my recent project, I adopted WooCommerce to achieve product management without shopping cart experience. You guessed it, disable and hide so many options.…

Read More
  • Code Snippet

Limit WordPress Search Results to Certain Post Types

  • Posted on August 26, 2013September 2, 2013
  • by Jerry Wang

WordPress built-in search function searches all post types by default. Sometimes, we want to have some controls over what should be searched and what not. For example, on a blog website, I pretty much want to limit the search within…

Read More
  • Code Snippet

How to Redirect to Post if Search Result Returns Only One Match

  • Posted on August 24, 2013September 27, 2013
  • by Jerry Wang

When someone searches your blog using WordPress built-in search engine, the results are displayed as a list. Wouldn’t it be nice if we can redirect the visitor directly to the post when there is only one match in the search…

Read More
  • Code Snippet

Troubleshooting: WordPress Contact Form Not Sending EMail

  • Posted on August 24, 2013November 26, 2015
  • by Jerry Wang

I was ready to call it a day after long hard-working hours, then a unhappy customer dropped me a bomb, “Hey, the contact form you just touched today not sending out email. Get it fixed, NOW!”. If this sounds familiar…

Read More
  • Code Snippet

Disable WordPress Plugin Update Notification

  • Posted on August 23, 2013January 2, 2016
  • by Jerry Wang

“There is a new version of XYZ plugin available”. This message is so familiar to WordPress admin. But sometimes, we need to turn it off. For example, I just customized a plugin, and don’t want my customization code being overwritten…

Read More
  • Code Snippet

Insert Widget with Shortcode in WordPress

  • Posted on August 16, 2013August 16, 2013
  • by Jerry Wang

Themes are designed very differently from each other. I found myself sometimes use columns template provided by some themes to achieve sidebar like layout. As it is something like 75/25 column split, not standard widget area, inserting a widget needs…

Read More
  • Code Snippet

Seriously! How to Remove WordPress Version Number

  • Posted on July 19, 2013May 18, 2014
  • by Jerry Wang

A lot of us know that, “removing WordPress version number” is a fairly popular security trick. The purpose is to hide the WordPress version number embedded in the final rendered HTML code, so to reduce the risk of being targeted…

Read More

Posts navigation

Previous Page Page 1 Page 2 Page 3

Recent Posts

  • Make Uncode theme working on your DreamHost shared hosting account
  • Remove /?doing_wp_cron from URL
  • My New iMac Setup Troubleshooting
  • How to Replace Huge Image with Optimized Version the Easy Way
  • How to disable Guternberg Editor – the new Block Editor in WordPress 5
  • How to increase Max Input Vars on DreamHost shared hosting account
  • How to Upgrade to WordPress 5.0 without losing Classic Editor
  • WordPress Security Tip – Avoid using these usernames
The Ultimate Managed Hosting Platform

Recommended WordPress Hosting

Web Hosting  Fastest WordPress Hosting

Coupon & Promotion

  • 10% saving on S2Member Pro (Single-site)
  • 10% saving on S2Member Pro (Unlimited-site)
  • Hostgator 25% off coupon: 25offhosing

WordPress Themes & Plugins

 

Tags

.htaccess 404 500 add_filter() Admin Archive Backup BackWPup Block Editor Coda Cron Custom Post Type DreamHost Email Error Guternberg Hack IfModule Login Membership Menu mobile password Performance PHP Plugin redirect Registration Responsive Revision Search Security Settings SSH Theme Troubleshooting Update WooCommerce wp- WP-CONFIG.PHP wp-login.php wp_query() wp_redirect() WP_TEMP_DIR WSOD

Recommended Plugins

  Gravity Forms Plugin for WordPress   s2Member® (WordPress Membership Plugin)

Categories

  • Code Snippet (30)
  • General (17)
  • Mobile (3)
  • Performance (9)
  • Plugin (23)
  • Security (17)
  • Troubleshooting (29)

Archives

© Copyright 2023 – WordPress Optimized!
Retina Theme by WPAisle ⋅ Powered by WordPress