How do i remove Business feeds Shortcode fatal error

This is probably the issue: $currency = wp_remote_get($current_ping); if($currency){ $currency will either be a WP_Error object or an array. Checking if($currency) will be true in both cases. Instead, you should check if it’s an array and not an error object: if ( is_array( $currency ) && ! is_wp_error( $currency ) ) { of course, that … Read more

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