redirect word-press page with page values

Use this code and check<a href=”‘. get_permalink(‘dashboard’) .’?dashboard=myprofile” class=”wpum-profile-account-edit”>’. __(‘ (Edit Account)’, ‘wpum’) .'</a>. In get_permalink() function you can only pass the post ids or page titles to get the page url but you have added additional parameters with that so it was not getting the correct url. So I have edited the code to … Read more

How do I show a button only on my custom template page?

It’s as simple as doing a conditional and check if you are on home. What you are looking for is is_page_template( );. Wrap your button inside it as follows: <?php if( is_page_template( ‘your-template-slug.php’ ) ){ ?> <button name=”button” style=” … ” value=”OK” type=”button”>HAVE A QUESTIONS</button> <?php } ?>

How do I locate specific file in a post that affects ssl?

A quick squint at your site reveals that you’re serving it with Nginx, so a simple .htaccess redirect won’t work. The following block in your Nginx config should take care of any stray locally-served files that are still coming over http: server { listen 80 default_server; listen [::]:80 default_server; server_name _; return 301 https://$host$request_uri; } … Read more