dst89
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Last version of this day the formatting of mails is broken.+1
same issue here since 5.7.3Fast & friendly support
Debug is true – there ist no error in debug.log.
But I found this in includes/class-apsfc.php
/** * Force "The language is set from content" (in Language->Settings->URL modifications) */ $options = get_option( 'polylang' ); if ( isset( $options['force_lang'] ) && 0 !== $options['force_lang'] ) { $options['force_lang'] = 0; update_option( 'polylang', $options ); }
Thats why I can’t change the setting to “The language is set from the code in the URL”
//Edit: I changed to use pll_register_string to translate my theme-customizer… so I did not need the plugin anymore. But I think it’s a good plugin already, if it works properly.
- This reply was modified 4 years, 10 months ago by dst89.
Forum: Fixing WordPress
In reply to: is_single() / is_singular not working instead of content-single.phpI think i just solved the problem:
in the single.php I coded in the loop:
<?php get_template_part( 'content', get_post_type() ); ?>
to get the custom post types Template content-portfolio.php.in the single-post.php I coded in the loop:
<?php get_template_part( 'content', get_post_format() ); ?>
to geh′t the custom post format Template like content-image.php.The decision between is_single() and !is_single() works.
Is it possible to distinguish in this way? It works but I don’t know if it fits with the wordpress codex… Is it allowed to distinguish between “single-post” and “single” to distinguish between Custom post Format and Custom post Type and get different single Views?
Forum: Fixing WordPress
In reply to: Query / Loop for Custom Post Type AND Page ContentHi karpstrucking,
thanks for your answer.
I realized your code like this:
<?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endwhile; // end of the loop. ?> <?php wp_reset_postdata(); ?> <?php $args = array( 'post_type' => 'portfolio', 'posts_per_page' => 9 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endwhile; // end of the loop. ?> <?php wp_reset_postdata(); ?>
… and this works great for me.
Is this the way as it provides for wordpress?