Two column layout in WordPress?

This is not really a WordPress question but my first plugin solution is a “WordPress” way to do it. My other solutions are more general web design. I’m also making the assumption that you have some experience with custom templates/scripts. If you want to manually do it you can use something like Grid Columns This … Read more

How to remove date, author and comment count from Chameleon search results page

If the theme doesn’t have a search.php file, index.php will be used. Template_Hierarchy Template file used to render a Search Results Index page search.php index.php [update] Use the following to print the current template being used to render a page: add_filter( ‘the_content’, ‘so_9405896_the_content_filter’, 20, 1 ); function so_9405896_the_content_filter( $content ) { if( is_admin() || !current_user_can( … Read more

How can I add text on top of slideshow? [closed]

I’m confused as to what you are asking. Functionally, all you are required to do is add a DIV with a text block: <nav role=”navigation” class=”main-nav”> … </nav> <div class=”introtext”> <your content here> </div> <section class=”content”> Are you asking how to do that as in what file to edit or are you asking how to … Read more

Get WP Install Directory

The WordPress directory path is available in the constant ABSPATH. Be aware this is not related to the wp-content directory. The constant WP_CONTENT_DIR could be set to exactly the same value. Or another directory on the same level where WP_CONTENT_URL is another domain name. There doesn’t even have to be a wp-content equivalent: themes, plugins, … Read more

How do I allow certain users to make a certain type of post?

The following will assign capability requirements to your CPT. So, users will require edit_community, delete_community etc capabilities to perform those actions. function createCommunityPostType() { $args = array( ‘public’ => true, ‘label’ => ‘Community’ ‘capability_type’ => ‘community’, ‘map_meta_cap’ => true ); register_post_type(‘community’, $args ); } add_action(‘init’, ‘createCommunityPostType’); See the parts about capabilities in the codex. You … Read more