Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter christianlersch

    (@christianlersch)

    ok! THX!!!

    Thread Starter christianlersch

    (@christianlersch)

    I think I found the Problem! It was not on your side!!! Very sorry!!!!

    I use the Custom Post Type UI Plugin for the Custom Post type. Additional, I use WP-Bakery to make big Content Pages in that CPT.

    I also hack the output of the plugin with this code under function to output my own Stlyle with additional Custom Fields:

    
    function crp_custom_projects( $output, $result, $args ) {
        $projektfortschritt = get_field('projektfortschritt',$result->ID);
        $output = '';
        $output .= '<div class="col-12 projektebox col-md-6 col-lg-4 px-md-2"><div class="card mb-4" >';
        $output .= '<div class="card-img-top"><div class="projektfortschritt">'.gimmeprojektfortschritt($projektfortschritt, "weiss").'</div>';
        $output .= '<a>ID).'">'.get_the_post_thumbnail($result->ID, "projektquadrat").'</a></div>';
        $output .= '<div class="card-body mx-3 mt-3"><h5 class="card-title"><a href="'.get_the_permalink().'">'.get_the_title($result->ID).'</a></h5></div>';
        $output .= '<div class="card-footer mx-3 mb-3"><p class="card-text">'.substr(get_the_excerpt($result->ID), 0, 85).'...</p><div class="buttonbox"><a>ID).'" class="btn btn-primary">Weiterlesen</a></div></div>';
        $output .= '</div></div>';
    
        return $output;
    }
    add_filter( 'crp_title', 'crp_custom_projects', 10, 3 );

    `

    It looks like that: https://ibb.co/5LBKD05

    Now I think the problem was this part of the code “get_the_excerpt()”, because there is no auto generated Excerpt. And the Content is full of Shortcodes because of the WP-Bakery. I think that the get_the_excerpt() open the Content and try to generate the Excerpt but it is to much.

    I am very sorry that I not try more before contact you!

    Thanks & Cheers
    Chris

    Thread Starter christianlersch

    (@christianlersch)

    Hi Ajax,

    thanks for the quick response!!!

    1. https://ibb.co/mGhn6Xg

    2. I createt the Custom Post Type with the Plugin “Custom Post Type UI”

    3. It fail with both selections seperate and also if I only choose one of these settings.

    4. In other WordPress installations i not have the problem. There I only use it for posts. This is the first time I use it on Custom post types.

    I get errors like these if the setting like above are set:
    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 69632 bytes) in /wordpress/wp-includes/formatting.php on line 489

    I think it is a follow up error, because if I give the php more Memory it is on a different point…

    christianlersch

    (@christianlersch)

    If you use it as in your example (From: [your-name] <[your-email]>) this won’t work anymore.

    christianlersch

    (@christianlersch)

    I have the same Problem your From-Adress must be exactly the same domain as the site runs.

    Your Site: https://www.test.com

    Your From Adress need to be: [email protected]

    This new validation sucks… ??

    christianlersch

    (@christianlersch)

    Same problem here. My form will not send if I not put in a “From” adress with the same domain as the site. The site runs on a subdomain and there is no mailadress with this subdomain and also no need to have one…

    I get the same warning as John and the form also doesn’t send.

Viewing 6 replies - 1 through 6 (of 6 total)