How to call php file in theme directory from plugin

I resolved my issue. My error came from both calling the php file from the wordpress theme and converting the html code to an object value so that jquery ajax interprets it as it should. $tmpdir = get_template_directory() . ‘/ajax_user.php’; $resumeaccount = file_get_contents($tmpdir); So I get Html content inside singles quote (value object) instead of … Read more

Removing comment option

Remove comments_template() function from single.php template. By the way quick scan with Theme-Check shows that theme contains hardcoded links and runs obfuscated code, not even mentioning massive amount of missing or poorly coded features. I’d not use it without major scrub of internals.

Showing different posts on category pages

First make sure you’ve set your posts per page to 6 in the Reading settings – as I can see you’re displaying 2 columns of 3 posts. Then you need to add the page variable to the query_posts attributes, by adding this before you query posts: $paged = (get_query_var(‘page’)) ? get_query_var(‘page’) : 1; and then … Read more

Conflict in function to allow single post template based on category

You can check for your post type single-{post-type}.php first try this: /* Define a constant path to our single template folder */ define(SINGLE_PATH, TEMPLATEPATH . ‘/single’); /* Filter the single_template with our custom function*/ add_filter(‘single_template’, ‘my_single_template’); /* Single template function which will choose our template*/ function my_single_template($single) { global $wp_query, $post; /* Checks for single … Read more