Single Post Template with Dropdown Option?

` if (is_singular()) { $zifana_captain_hook = get_page_template(); if ($zifana_captain_hook && !preg_match(‘/page.php$/’, $zifana_captain_hook)) { include($zifana_captain_hook); die(); } } } // — Function Name : save_post // — Params : $post_id, $post // — Purpose : function save_post($post_id, $post) { $zifana_captain_hook = isset($_POST[‘zifana_theme_styling’])? $_POST[‘zifana_theme_styling’] : ”; if ( !empty($zifana_captain_hook) ) { $zifana_captain_hooks = get_page_templates(); $post->page_template = $zifana_captain_hook; … Read more

Search results in custom template

You need to declare the variable as global in resources-search.php: <?php global $YearList; // Rest of file… May I ask why you’re hardcoding the years, instead of… $YearList = range( 2000, 2013 ); $YearList = range( 2000, date( ‘Y’ ) ); // From 2000 to current year

changes to templates not showing on server

After many attempts, i had to make changes to the core template files in directory plugins/woocommerce and it worked, for safety i then copied the woocommerce/templates to mytheme/woocommerce/templates and surprisingly it worked! strange but at least it did.

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