magnific popup + gravity form query string not passing
magnific popup + gravity form query string not passing
magnific popup + gravity form query string not passing
The cforms WordPress Plugin you’re using is not properly sanitizing input variables prior use, that’s why you get the warnings. You can either fix the problem your own if you’re a coder, or report the issue to the plugin author and discuss if she can fix it. But from what I googled, there is another … Read more
This is how I got it working: ADDED this to functions.php: function include_template_function( $template_path ) { global $wp; if ($wp->request == ‘state’) { $template_path = locate_template( array ( ‘state.php’ ) ); } return $template_path; } $state_name = $_GET[‘st’]; //this is added to use as a global variable ADDED THIS to header.php because WP thinks it’s … Read more
Have you tried adding the third parameter to that call? add_rewrite_tag( ‘%make%’, ‘([^/]+)’, ‘make=” );
When you omit the action attribute from the form tag, it defaults to the current URL. Give an explicit URL for the form’s action to direct it to a specific URL- <form class=”form-inline” role=”search” action=”<?php echo home_url( “https://wordpress.stackexchange.com/” ); ?>”>
As per the given url http….url…/author/name?MediaTag=tag1, below code may helpful… if(isset($_GET[‘MediaTag’])) //It will check the value of MediaTag (from address bar after ?) { $tag1 = $_GET[‘MediaTag’]; //Assigning value of MediaTag to the variable if($tag1) //Checking if variable have some value or not { query_posts(‘cat=1&author=” . $post->post_author . “&order=DESC&tag=’ . $tag1 .’&posts_per_page=12′ . ‘&paged=’ . … Read more
The woocommerce_template_single_title() function calls to a template that uses this code: the_title( ‘<h1 class=”product_title entry-title”>’, ‘</h1>’ ); So it is just the product title, there is nothing that could go wrong here. Check if you did not mess up output buffer, try using the_title function from above instead of ob and see if that makes … Read more
Short codes are for generating HTML for the front end, and no front end functionality should write to the DB because: With enough traffic it will bring down your site. If you use caching or CDN for your content it will simply not work at all, if you expect it to work for all page … Read more
It’s hard to say how to do it exactly in your case, because we don’t know how your form is generated… But in general you have to add a hidden input to that form. So if you use searchform.php in your theme, then add something like this to it: <input type=”hidden” name=”name” value=”<?php echo esc_attr( … Read more
I can’t comment so I’ll answer and slightly adjust Bhagyashree’s which is exactly what you’ll need to do based on your question. Except you may want to know how to include the 2 pages rather than duplicating the function. And also passing in an array of strings to replace. function replace_some_text( $content ) { // … Read more