functions

Is there a hack for using is_page() within the function.php file?

I’ve created a function in my functions.php that’s called when the submit_form event is fired on the front-end. Here is the code: add_action([...]

How to use a custom post type archive as front page?

I’d like to use a custom post type archive as a site’s front page, so that http://the_site.com/ is a custom post type archive displayed[...]

How to publish a post with empty title and empty content?

Why I’m doing this you might ask? I’m developing a website for a business with a portfolio where the gallery items are posts. These posts are[...]

if plugin is active? check if plugin is enabled or not?

I’m using the mingle plugin and the mingle-forum plugin. I want to show a certain part on my site only if those two plugins are active. How can I[...]

remove empty paragraphs from the_content?

Hey guys, I simply want to prevent the creation of empty paragraphs in my wordpress post. That happens quite often when trying to manually space content. I[...]

How do I remove UL on wp_nav_menu?

I search on this site and found many answers ^(http://www.netaksharee.com/goto/http://wordpress.stackexchange.com/search?q=wp_nav_menu) for this question.[...]