Can we create a shorcode to move next page?

It’s not completely clear what you want to do, but it looks like you’re looking for the built in <!–nextpage–> shortcode, which allows you to cut a post in two or even more pieces. If you control your theme you can style wp_link_pages to change the link from the default ‘next page’ to something like … Read more

Create shortcode to display specific post in relationship current date

Try this use your desired name for function names : function main_func_name() { //Date parameter $currentDay = date(‘j’); $currentMonth = date(‘n’); //wp query to show saints name $con = mysqli_connect(“localhost”, “mydb”, “mypassword”, “myuser”); if (mysqli_connect_errno()) { echo “Failed to connect to MySQL: ” . mysqli_connect_error(); } $sql = “select * from santi where numero_giorno= ” … Read more

do_shortcode for is_page(slug)

In this line if( is_page( ( ‘azubi’); you start but not end the round bracket [“(” OR “)”] and not used semicolon after the if condition used colon like if( is_page(‘azubi’)): <?php if( is_page(‘azubi’)): echo do_shortcode( ‘[contact-form-7 id=”274″ title=”Bewerbungsformular_beruf” ]’ ); else: echo do_shortcode( ‘[contact-form-7 id=”2741″ title=”Bewerbungsformular_berufe” ]’ ); endif; ?> Check this : https://developer.wordpress.org/reference/functions/is_page/ … Read more

How to display a page dependent on a url parameter supplied by a form/button page?

If you would show pdf in content dynamically, which page would you like to show page, post or wherever. You have to echo your shortcode in template file. For example, you have to print like below <?php echo do_shortcode(“[shortcode pdf=”. $_REQUEST[“pdf_id’] .”); ?> http://yourwebsite.com/post-title/?pdf_id=20 //your url would be like that

Use Shortcode on Custom Page

You should this way to handle ajax request. It’s the recommended way to make a ajax call in WordPress. my_function.js Update your jquery with this code. jQuery(document).ready(function($) { $(‘#submit_payment’).click(function(e){ e.preventDefault(); var str = $(“form[name=season-form]”).serialize(); //alert(str); $.ajax({ type: “POST”, url: ‘//www.example.com/wp-admin/admin-ajax.php’, data: str + ‘&action=confirmRequest’ }).done(function(data){ $(“#result”).html(data); }); }); }); ajax_request_handling Paste this in functions.php of … Read more

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