Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sohbetodamorg

    (@sohbetodamorg)

    @eletoedica

    Used PHP codes in html files (file not html exactly I changed extension to php)

    After the body

    <?php require('../wp-blog-header.php');
      /*if you are getting 404 errors uncomment the next 2 lines*/
      status_header(200);
      nocache_headers();
    ?>
    

    Then content

    <?php $the_query = new WP_Query( array( 'page_id' => 464 ) ); ?>
    
    <?php function custom_excerpt_length( $length ) {
    if ( is_category() || is_archive() ) {
    return 20;
         }
    else{
    return 1500;
      }
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); ?>
    
    <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
    <h1 class="title entry-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
    <?php the_excerpt(__('(devam?...)')); ?>
    
    <?php endwhile; wp_reset_postdata(); ?>
    
    Thread Starter sohbetodamorg

    (@sohbetodamorg)

    @catacaustic hello, my purpose I’m created lot of content start and end titles with Sohbet and Sohbet Odalar? keyword. I think google mark spam and made seo problems. My competitors most usely landing page and use background blog with wordpress.

    @eletoedica yes but I use one content on landing page and content is very long. I want give the landing page privately if you want a inspect this.

    Thanks everyone

    Forum: Plugins
    In reply to: [AMP] Lots of src error
    Thread Starter sohbetodamorg

    (@sohbetodamorg)

                    foreach ( $attributes as $name => $value ) {
                            switch ( $name ) {
                                    // case 'src':
                                    case 'alt':
                                    case 'class':
                                    case 'srcset':
                                    case 'sizes':
                                    case 'on':
                                            $out[ $name ] = $value;
                                            break;
    

    Hello I disabled src set in includes/sanitizers/class-amp-img-sanitizer.php file its fixed.

    Problem solved.
    Thanks,

    Forum: Plugins
    In reply to: [Yoast SEO] Title Problem
    Thread Starter sohbetodamorg

    (@sohbetodamorg)

    Solved.

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    to

    <title><?php wp_title(); ?></title>

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