Using shortcode in template file

the_post_thumbnail() echos the thumbnail and returns nothing. You probably want to use get_the_post_thumbnail() which returns it as a string. Your code currently is equivalent to this: if (has_post_thumbnail()) { // Echo the thumbnail the_post_thumbnail(); // Apply the filter but do nothing with the result. apply_filters( ‘the_content’, “[frame_left]”.”[/frame_left]”); } if (has_post_thumbnail()) { // Echo the thumbnail … Read more

What are the main parts of a WordPress Template?

Indeed, it is as toscho has said. index.php and style.css are the bare minumum. Developers like to separate things, though, so instead of having one index.php file to rule all, you’ll find parts like: header.php footer.php sidebar.php index.php style.css functions.php and additional templates like ones you mentioned in the question. This page will show you … Read more

How to put limit on slider

I installed the Lite version of this theme on a test site and dug around. The function that generates the slider doesn’t provide any useful filters. However, it does store the IDs of the featured posts in a transient, so you could use the pre_set_site_transient_’ . $transient and transient_’ . $transient filters to reduce the … Read more

How to properly Remove certain CSS / JS files from template

You can use this function that removes woocommerce styles/scripts if it’s your custom template, remember to change YOUR_TEMPLATE_FILE.php to match the specified template you want to remove the woocommerce css/js from it. add_action( ‘wp_enqueue_scripts’, ‘woo_cleaner’, 99 ); function woo_cleaner() { remove_action( ‘wp_head’, array( $GLOBALS[‘woocommerce’], ‘generator’ ) ); //dequeue scripts and styles if template matches if … Read more

Override Dokan Includes File in Child Theme

Child themes let you override templates, but these are not templates you’re attempting to override. You can’t drop in arbitrary files and override the parent theme, and WordPress can’t do it’s magic when include or require are used to load files. The reason this works for templates, is because WordPress doesn’t load them with include, … Read more

Footer.php not showing?

From the Codex (http://codex.wordpress.org/Function_Reference/get_footer) If the theme contains no footer.php file then the footer from the default theme wp-includes/theme-compat/footer.php will be included. Chances are that something is wrong with your footer.php, and there’s nothing to render – ie it’s being called, but it’s not doing what’s expected. . Can you paste your footer.php?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)