Neueruser
Forum Replies Created
-
Forum: Plugins
In reply to: [Flamingo] your-message sometimes missingThank you for your reply, for test purpose I changed to twentytwentyfour and deactivated all plugins except Contact Form 7, Flamingo, Honeypot for Contact Form 7 and it doesn’t help…
Forum: Developing with WordPress
In reply to: PHP Code per ShortcodeThank You very much for your time to answer my questions.
I found a plugin that does insert the code for me: “xyz code snippets”.Thanks once more!!!
Forum: Developing with WordPress
In reply to: PHP Code per ShortcodeThanks @bcworkz ! So I see that it’s not working ??
Other idea:
Can I “tell” the Template File to execute the PHP code (what it’s actually already doing) and then call a function “load the content of Gutenberg”?Forum: Developing with WordPress
In reply to: PHP Code per Shortcode@bcworkz Thanks for your help!
Unfortunately I dont understand much of the technical details and thought I could do it somehow like this:function event-list_shortcode( $atts ) { return <<<event-list <?php $argsevent = array( 'timespan' => 10000, 'date_format_1' => 'd. F Y', 'date_format_2' => 'd. F Y', 'html_list_v1' => '%DATE%: <a href="%URL%">%TITLE%</a>', 'html_list_v2' => '<a href="%URL%"><span style="color: #DDD;">%DATE% </span> %TITLE%</a>', 'html_list_v3' => '%DATE% bis %ENDDATE%: <a href="%URL%">%TITLE%</a>', 'html_list_v4' => '<a href="%URL%">%DATE% (multiday!!!)%TITLE%</a>, 'max_events' => 0, ); rs_event_list($argsevent); ?> add_shortcode( 'event-list', 'event-list_shortcode' );
Forum: Plugins
In reply to: [Gutenberg] Reusable ButtonsThank you!!!
Forum: Plugins
In reply to: [Cachify] flush cache and rebuildThere’s definitely a better way. Use WordPress tools like the cron API, the HTTP API and WP_Query to fetch posts.
Thanks Pascal, but how to do this?
Why I do it? Its because I use an old rs-event plugin and if the page is not in cache, it takes up to 12 seconds to load the page…Forum: Plugins
In reply to: [Cachify] flush cache and rebuildOk, thanks… like this it works:
<?php $lauf=microtime(true); /* Set up WordPress environment */ if ( !defined('ABSPATH') ) { require_once('./wp-load.php'); } /* Cache leeren */ if ( has_action('cachify_flush_cache') ) { do_action('cachify_flush_cache'); echo "Cachify-Cache deleted!<br /><br />"; } /* cache rebuild */ $ii=1; $postID = $wpdb->get_col(" SELECT ID FROM $wpdb->posts WHERE (post_type = 'page') AND (post_status = 'publish') AND (post_password = '') "); foreach($postID as $post_link) { echo sprintf("[%03s] ", $ii) . '<a href="' . get_permalink($post_link) . '">' . get_the_title($post_link) . '</a><br />'; rebuild(get_permalink($post_link)); $ii++; } /* cache rebuild */ $ii=1; $postID = $wpdb->get_col(" SELECT ID FROM $wpdb->posts WHERE (post_type = 'post') AND (post_status = 'publish') AND (post_password = '') "); foreach($postID as $post_link) { echo sprintf("[%03s] ", $ii) . '<a href="' . get_permalink($post_link) . '">' . get_the_title($post_link) . '</a><br />'; rebuild(get_permalink($post_link)); $ii++; } echo "<br />Cachify-Cache rebuild!<br /><br />"; echo "Laufzeit: ".(round(microtime(true)-$lauf,2))." Sek.<br /><br />"; function rebuild($url) { $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_HEADER, 0); ob_start(); curl_exec ($ch); curl_close ($ch); ob_end_clean(); return; } ?>
Is there any better way?
Forum: Plugins
In reply to: [Cachify] flush cache and rebuildThanks Caspar, but i don’t know how to add it (posts and pages), if i change to post_type = ‘post’ it only rebuilds the posts, not the pages…
Forum: Plugins
In reply to: [Plugin Name] WARNING This plugin inserts "online casino" links in the site.The Plugin is called “SEO Interlinking” and I have the same problem in my blog.
I removed the Casino link in the installation.php some Time ago, and now it was there again.
Can I solve it with setting the Dateiattribute of installation.php to “444” ?
Or does anybody have some recommendation for better interlinking plugin?Thanks
DetlefForum: Plugins
In reply to: [Optimus - WordPress Image Optimizer] [Plugin: Optimus] Keine OptimierungHi Sergej,
i have the same problem, 0% optimization.
On an other page with the same WP-Version (3.4.2) but not the same Provider everything works fine.
Maybe some PHP – Modul not Working???
If it helps i can send you an Link to the php info of the server…
https://derflammenwerfer.de.195-42-120-209.smartconfig.net/wordpress3-5b3/phpinfo.php
Thanks