page shows 404 on form submit

i putting something else in action? Yes. The complete path to the file. If your site is http://mysite.com and you are on the home page then you are requesting a file at http://mysite.com/result.php. If you are on a date archive you’d be requesting a file at http://mysite.com/2013/03/03/result.php. The file you want is actually at http://mysite.com/wp-content/themes/theme-name/result.php. … Read more

!is_page_template not working with && operator

You need to include is_page() in your if statement : <?php if ( function_exists(‘yoast_breadcrumb’) && is_page() && !is_page_template( ‘single-course.php’ ) ) { yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’); } else { ?> <p id=”breadcrumbs”><span xmlns:v=”http://rdf.data-vocabulary.org/#”><span typeof=”v:Breadcrumb”><a href=”https://wordpress.stackexchange.com/questions/187868/<?php echo site_url(); ?>” rel=”v:url” property=”v:title”>Home</a> » <span rel=”v:child” typeof=”v:Breadcrumb”><a href=”<?php echo site_url(‘/tracks’); ?>” rel=”v:url” property=”v:title”>Tracks</a> » <strong class=”breadcrumb_last”><?php echo get_the_title(); ?></strong></span></span></span></p> <?php … Read more

How to rewrite title- and meta-description templates for page templates in Yoast Plugin [closed]

You may consider the use of both filter wpseo_metadesc (for meta description) and wpseo_title (for title). The idea is to change the values of title and/or description depending if you meet some condition. So your code will look to somthing like this: add_filter(‘wpseo_metadesc’,’custom_meta’); function custom_meta( $desc ){ if (/* do your test here to check … Read more

how to remove all body classes in wordpress

I’m going to assume you mean the classes generated by body_class(), e.g. from the twentytwentyone header.php: <body <?php body_class(); ?>> <?php wp_body_open(); ?> The simplest thing to do is to just remove the <?php body_class(); ?> call from your header.php. Or if you can’t / don’t want to change that, create a new header.php for … Read more

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