Forum Replies Created

Viewing 10 replies - 31 through 40 (of 40 total)
  • Thread Starter aosipov

    (@aosipov)

    Well it is all sounds lovely, can i test it on localhost copy of my site? or needs to be on domain?
    because on my local it gives me this: “Notice: Undefined index: @attributes in /…/…/wp-content/plugins/mad-mimi-wp/providers/madmimi/functions.php on line 33”

    Maybe this will help you?

    Thread Starter aosipov

    (@aosipov)

    yes I am using Mad Mimi Forms by Optin Cat.
    and my Mad Mimi plugin is running along, i am using the same settings that are working fine for Mad Mimi Plugin, but refuse to work for Mad Mimi Forms by Optin Cat.

    Thank you

    Thread Starter aosipov

    (@aosipov)

    Yeah, this thing is not supported anymore:(
    How usually you fix this type of error…

    Thread Starter aosipov

    (@aosipov)

    Thank you Clayton, but i think this is not an issue, my website is running local, this is the site with the plugin: https://wpadvancedsearch.com/.

    still struggling with that:)

    Thread Starter aosipov

    (@aosipov)

    Thank you @bcworkz, that helps!

    Thread Starter aosipov

    (@aosipov)

    Thank you ckbrewer15, i will try that approach, but what if i want to display 2 first posts differently, and continue as a regular loop after that

    Thread Starter aosipov

    (@aosipov)

    I tried this way:

    get_header(); ?>
    
    <div id="primary" class="content-area col-md-9">
    	<main id="main" class="site-main-for-travel">
        <?php
          echo '<h2 class="display page-title">';single_cat_title();echo '</h2>';
          the_archive_description( '<div class="archive-description">', '</div>' );
        ?>
    
    <div class="row">
      <?php $current_cat = get_the_category();
      $cat_ID = $current_cat[0]->cat_ID;
      $loop = new WP_Query(array(
        'cat' => $cat_ID,
        'post_type' => 'post',
        'posts_per_page' => 2,//posts per page
        'orderby' => 'date',
        'order' => 'DESC'
      ));?>
      <?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post();  ?>
        <article id="post-<?php the_ID(); ?>" <?php post_class('col-md-6'); ?>>
    
          <?php if ( has_post_thumbnail() ) : ?>
              <a class="post-teaser" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
                <div class="thumbnail-block"><?php the_post_thumbnail('regular-post-thumbnail'); ?></div>
                <div class="title-block"><span class="h3 title-for-widget"><?php the_title(); ?></span></div>
              </a>
          <?php endif; ?>
        </article>
      <?php endwhile; ?>
      <?php endif; ?>
      <?php wp_reset_query();?>
    </div>
    
    <div>Ad-2</div>
    <div class="row">
      <?php $current_cat = get_the_category();
      $cat_ID = $current_cat[0]->cat_ID;
      $loop = new WP_Query(array(
        'offset' => 2, //Set your offset
        'cat' => $cat_ID,
        'post_type' => 'post',
        'posts_per_page' => 6,//posts per page
      ));?>
      <?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post();  ?>
        <article id="post-<?php the_ID(); ?>" <?php post_class('col-md-4'); ?>>
    
          <?php if ( has_post_thumbnail() ) : ?>
              <a class="post-teaser" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
                <div class="thumbnail-block"><?php the_post_thumbnail('regular-post-thumbnail'); ?></div>
                <div class="title-block"><span class="h3 title-for-widget"><?php the_title(); ?></span></div>
              </a>
          <?php endif; ?>
        </article>
      <?php endwhile; ?>
      <?php endif; ?>
      <?php wp_reset_query();?>
    </div>
    <div>Ad-3</div>
    <div class="row">
      <?php $current_cat = get_the_category();
      $cat_ID = $current_cat[0]->cat_ID;
      $loop = new WP_Query(array(
        'offset' => 8, //Set your offset
        'cat' => $cat_ID,
        'post_type' => 'post',
        'posts_per_page' => 6,//posts per page
      ));?>
      <?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post();  ?>
        <article id="post-<?php the_ID(); ?>" <?php post_class('col-md-4'); ?>>
    
          <?php if ( has_post_thumbnail() ) : ?>
              <a class="post-teaser" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
                <div class="thumbnail-block"><?php the_post_thumbnail('regular-post-thumbnail'); ?></div>
                <div class="title-block"><span class="h3 title-for-widget"><?php the_title(); ?></span></div>
              </a>
          <?php endif; ?>
        </article>
      <?php endwhile; ?>
      <?php endif; ?>
      <?php wp_reset_query();?>
    </div>
    <div>Ad-4</div>
    <div class="row">
      <?php $current_cat = get_the_category();
      $cat_ID = $current_cat[0]->cat_ID;
      $loop = new WP_Query(array(
        'offset' => 14, //Set your offset
        'cat' => $cat_ID,
        'post_type' => 'post',
        'posts_per_page' => 6,//posts per page
      ));?>
      <?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post();  ?>
        <article id="post-<?php the_ID(); ?>" <?php post_class('col-md-4'); ?>>
    
          <?php if ( has_post_thumbnail() ) : ?>
              <a class="post-teaser" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
                <div class="thumbnail-block"><?php the_post_thumbnail('regular-post-thumbnail'); ?></div>
                <div class="title-block"><span class="h3 title-for-widget"><?php the_title(); ?></span></div>
              </a>
          <?php endif; ?>
        </article>
      <?php endwhile; ?>
      <?php endif; ?>
      <?php wp_reset_query();?>
    </div>
    		</main><!-- #main -->
    	</div><!-- #primary -->
    
    <?php
    get_sidebar();
    get_footer();

    but it doesn’t work for some categories, just shows random categories, i guess it doesn’t do reset and i have no idea why:(

    • This reply was modified 7 years, 4 months ago by aosipov.
    Thread Starter aosipov

    (@aosipov)

    I want to run basically my category posts loop, like 50 for example on category page. And every 6 posts i want to be able to add the Ad. something like that:
    X X X
    X X X
    —–ad
    X X X
    X X X
    —–ad
    X X X
    X X X
    —–ad
    X X X
    X X X
    X X X
    X X X

    maybe the widget placeholder

    • This reply was modified 7 years, 4 months ago by aosipov.
    Thread Starter aosipov

    (@aosipov)

    Thank you everyone, ive got that!

    Thread Starter aosipov

    (@aosipov)

    Thank you guys! I’ve got that. But my challenge is to display the category that all those posts are sharing. Not all list of the categories. Is that possible?
    For example when i select “specific category” in this plugin, it displays the list of the posts that belong to this category and they are in another categories too. So i want to be able to grab this “specific category” from the displayed posts vs to have all the categories displayed. Sorry if this is came out confusing:)
    Thanks in advance guys

Viewing 10 replies - 31 through 40 (of 40 total)