These code snippets enable you to remove body & post classes in WordPress. You can use the code directly in a template file which uses
You've landed on the archives page for posts filed under the WordPress Tips category.
Here you'll find useful tips and tutorials to help solve common problems and build a better WordPress site.
This code enables you to add the same class to every odd number of posts and another class to every even numbered post, on any type of
This PHP code enables you to add a custom class to the first post on any archive page loop. The code, which works in any theme, only adds
If you paste any type of shortcode in the value field of the custom fields meta box, it won't work. By default, WordPress doesn't
This code excludes all posts in one specific category from displaying in on your sites search results page from using the search widget
This code enables you to set a different amount of posts per archive page, otherwise use the default WordPress Reading settings. The
This tutorial provides 5 different code examples which enable you to display a list of tags anywhere in your theme. In the 1st example,
This code, once added to your child themes functions file, displays the full content for the first post on both your blog & home pages,
This code generates a custom text widget similar to the text widget included in WordPress. The code is added to your child theme so
This post contains 7 different solutions which enable you to: Open a PDF file in the same window Check if the custom field value
This template for Genesis enables you to display a list of contributors from any Github project in a gallery like this: This template
This code enables you to remove your comments form as well as the template which displays your comments after single posts. You can then
This tutorial shows you how to add a subscribe bar on top of your YouTube video embeds like this: It also includes the special link
If you want to remove the entire style sheet in your child theme from working conditionally, you can using the code in this tutorial. An
Most Developers, designers and WordPress users use the native gallery shortcode to display their gallery. You can also use the
We all know shortcodes enable you to execute a function and add content within the content area of your editor, as well as other locations.
This code enables you to change the size of your images when displayed on the attachment page. By default, WordPress is coded to
This solution enables you to add anything immediately after the content on single posts. This code executes after all plugins which
If you've created a custom post type (CPT), you might also want to use a special template for displaying all single post content for your
If you want to add a link outside your editor, you'll need to code it into a custom function or add it directly in a theme file. Otherwise,