Tag Archives: WordPress

How to make specific WordPress posts visible only when accessed directly

Wordpress Logo BlueRecently I had to to publish an article in a way that common site visitors aren't aware of it's existence. Basically this article had to be excluded from all WordPress loops and visible only when accessed directly. General idea of solution presented in this article is to use pre_get_posts hook to alter WP_Query. Goal is excluding hidden post on frontend, area that isn't single post and when area is single post other than hidden post it self. Now allow me to share code snippet that can be used for this purpose.

Continue reading

Adding GeSHi/WP-Syntax compatible pre HTML tag button to WordPress Quicktags Javascript editor

Wordpress Logo BlueIf you're anything like me your blog is probably full of code snippets and you're using WordPress Quicktags editor to enter your posts content. You're also using GeSHi compatible syntax highliter like WP-Syntax to make your code snippets more readable.

In this article I'll give you Javascript and PHP code I've created to add GeSHi compatible pre button to my blog's Quicktags editor toolbar on both frontend and backend.

Continue reading

PHP function for adding admin menu separator inside WordPress backend

WordPress admin menu separatorOften your WordPress plugin or theme adds admin submenu inside WordPress admin interface using add_menu_page() functions on admin_menu hook or using WordPress Settings API. When your code adds multiple submenu items wouldn't it be nice to create section on admin menu to reduce clutter? Unfortunately WordPress currently doesn't support adding admin menu separators so you must do it manually by filtering $menu global variable. Here's function for doing that together with an example that should demonstrate it's use.

Continue reading

How to hide that you are using WordPress aka debranding WordPress

WordPress logo I like WordPress, really I do. I use it whenever possible to make my products path to my clients short and enjoyable. There's just one thing that pokes me in the eye whenever I need to deliver my project. WordPress developers have created greatest CMS ever conceived. They did that free of charge and the community is very grateful for all they've done, but do they really need to stick WordPress name and logo everywhere? Actually I already tried to remedy this situation inside one of my earlier articles. In this article I'll show you a few more tricks to remove some of WordPress branding from WordPress user interface.

Continue reading

Should you install Disqus commenting service on your blog or web site?

Disqus?According to Wikipedia Disqus is an online discussion and commenting service for websites and online communities that uses a networked platform. What this means is that if you have a web site you can let Disqus handle your site commenting features by including their code or plugin for your blogging platform into your site. In this article I will review the idea of using Disqus to power your site discussion forums, but with special emphasis on the blogs and sites writing about open source technologies.

Continue reading