Category: WordPress

tag.php not including tags from custom post types

Ran into a very funny problem when creating a template, basically, when a tag was clicked and the template sourced the tag.php page it was not quering any posts in any of the custom post types on the website. By adding the following code it fixed the issue: function wpse28145_add_custom_types(…

Read More
wordpress security release

Custom built restaurant restaurant menu

This function was custom built 

Read More
wordpress designer

Display the second or third level menu items in WordPress

Display the second or third level menu items in WordPress. Surprisingly WordPress does not have this feature built into it.

Read More
wordpress security release

WordPress 4.9.2 Security and Maintenance Release

Hi All, its been a few months now that WordPress 4.9.2 Security and Maintenance Release has been out. If any users have still not upgraded to this version its a great time to do so now. Do not ignore upgrades , small incremental updates will save you allot of time and money…

Read More

Disable and delete post revisions

Add the following code to your wp-config.php file define(‘AUTOSAVE_INTERVAL’, 300 ); // seconds define(‘WP_POST_REVISIONS’, false ); Then delete the existing posts marked as revisions in the MySql database with the following SQL command DELETE FROM wp_posts WHERE post_type = “revision”;

Read More

Check if user is logged into wordpress

This is the following code that will be used to log users into wordpress.

Read More

Using the MMenu WordPress plugin to list your categories (its what we use for this site)

This how you use the very famoust MMenu to list categories in a wordpress website.

Read More
wordpress security release

WordPress check if the user is logged in

Use the following code to check if a user is logged into a WordPress website.

Read More

Display the wordpress’s blog name

Use the following code to display the WordPress blog name:

Read More

WordPress plugin MMENU scrolling fixed bar overflow using CSS

With an off canvas menu, when opened on a long page the scrolling bar can make the page jump. Use the following CSS to bypass this problem and have the scrolling bar appear even when the menu is open.

Read More
© Toffy Digital 2018 Powered by Toffy Digital