mhentezari
Forum Replies Created
-
Forum: Themes and Templates
In reply to: hide some posts; my code does not workwow!
thanks a lot my friend ??
it’s working very nice :))Forum: Themes and Templates
In reply to: hide some posts; my code does not worksorry, that’s it:
<section id="ak-blog"> <section class="ak-container" id="ak-blog-post"> <div id="primary2" class="content-area"> <main id="main" class="site-main" role="main"> <?php $new_query_args = array( 'post__not_in' => array( $accesspresslite_welcome_post_id, $featured_post1, $featured_post2, $featured_post3 ); ); $new_query = new WP_Query( $new_query_args ); if ( $new_query->have_posts() ) : while ( $new_query->have_posts() ) : $new_query->the_post(); get_template_part( 'content' ); endwhile; ?> <div class="clear"></div> <?php accesspresslite_paging_nav(); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> <?php wp_reset_query(); ?> </main><!-- #main --> </div><!-- #primary --> <div id="secondary-right" class="widget-area right-sidebar sidebar"> <?php if ( is_active_sidebar( 'blog-sidebar' ) ) : ?> <?php dynamic_sidebar( 'blog-sidebar' ); ?> <?php endif; ?> </div> </section> </section>
Forum: Themes and Templates
In reply to: hide some posts; my code does not workI used all of them. for example the last one is this:
<section id="ak-blog"> <section class="ak-container" id="ak-blog-post"> <div id="primary2" class="content-area"> <main id="main" class="site-main" role="main"> <?php if ( have_posts() ) : ?> <?php $new_query_args = array( 'post__not_in' => array( $accesspresslite_welcome_post_id, $featured_post1, $featured_post2, $featured_post3 ); ); $new_query = new WP_Query( $new_query_args ); if ( $new_query->have_posts() ) : while ( $new_query->have_posts() ) : $new_query->the_post(); get_template_part( 'content' ); endwhile; ?> <div class="clear"></div> <?php accesspresslite_paging_nav(); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> <?php wp_reset_query(); ?> </main><!-- #main --> </div><!-- #primary --> <div id="secondary-right" class="widget-area right-sidebar sidebar"> <?php if ( is_active_sidebar( 'blog-sidebar' ) ) : ?> <?php dynamic_sidebar( 'blog-sidebar' ); ?> <?php endif; ?> </div> </section> </section>
Forum: Themes and Templates
In reply to: hide some posts; my code does not workI used all of them. for example the last one is this:
<section id=”ak-blog”>
<section class=”ak-container” id=”ak-blog-post”>
<div id=”primary2″ class=”content-area”>
<main id=”main” class=”site-main” role=”main”><?php if ( have_posts() ) : ?>
<?php
$new_query_args = array(
‘post__not_in’ => array( $accesspresslite_welcome_post_id, $featured_post1, $featured_post2, $featured_post3 );
);$new_query = new WP_Query( $new_query_args );
if ( $new_query->have_posts() ) :
while ( $new_query->have_posts() ) : $new_query->the_post();
get_template_part( ‘content’ );
endwhile;
?><div class=”clear”></div>
<?php accesspresslite_paging_nav(); ?><?php else : ?>
<?php get_template_part( ‘content’, ‘none’ ); ?>
<?php endif; ?>
<?php wp_reset_query();
?></main><!– #main –>
</div><!– #primary –><div id=”secondary-right” class=”widget-area right-sidebar sidebar”>
<?php if ( is_active_sidebar( ‘blog-sidebar’ ) ) : ?>
<?php dynamic_sidebar( ‘blog-sidebar’ ); ?>
<?php endif; ?>
</div>
</section>
</section>Forum: Themes and Templates
In reply to: hide some posts; my code does not workit’s the main code and currently I do not use exclude codes you give me.
I change this part of the above code with codes you got me at line 6:<?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); get_template_part( 'content' ); endwhile; ?>
Forum: Themes and Templates
In reply to: hide some posts; my code does not workHere is this section’s code:
<section id="ak-blog"> <section class="ak-container" id="ak-blog-post"> <div id="primary2" class="content-area"> <main id="main" class="site-main" role="main"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); get_template_part( 'content' ); endwhile; ?> <div class="clear"></div> <?php accesspresslite_paging_nav(); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> <?php wp_reset_query(); ?> </main><!-- #main --> </div><!-- #primary --> <div id="secondary-right" class="widget-area right-sidebar sidebar"> <?php if ( is_active_sidebar( 'blog-sidebar' ) ) : ?> <?php dynamic_sidebar( 'blog-sidebar' ); ?> <?php endif; ?> </div> </section> </section>
and this is content.php code where related to above code:
<article id="post-<?php the_ID(); ?>" class="blogposts"> <header class="entry-header"> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1> </header><!-- .entry-header --> <?php if ( is_search() ) : // Only display Excerpts for Search ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php if(has_post_thumbnail()){?> <div class="entry-thumbnail"> <?php the_post_thumbnail('thumbnail'); ?> </div> <?php } ?> <div class="short-content"> <p><?php echo limitword( get_the_excerpt() , 65 ) ?>...</p> </div> <a href="<?php the_permalink(); ?>" class="bttn"><?php _e('More','accesspresslite')?></a> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'accesspresslite' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <footer class="entry-footer"> <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> <?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'accesspresslite' ) ); if ( $categories_list && accesspresslite_categorized_blog() ) : ?> <span class="cat-links"> <?php printf( __( 'Posted in %1$s', 'accesspresslite' ), $categories_list ); ?> </span> <?php endif; // End if categories ?> <?php endif; // End if 'post' == get_post_type() ?> </footer><!-- .entry-footer --> </article><!-- #post-## -->
Forum: Themes and Templates
In reply to: hide some posts; my code does not worksorry
but does not work again ??Forum: Themes and Templates
In reply to: hide some posts; my code does not workI use this code and it’s work
if ( ($post_Id == $accesspresslite_welcome_post_id) || ($post_Id ==$featured_post1) || ($post_Id ==$featured_post2) || ($post_Id ==$featured_post3) ){} else {the_content());}
but still there is a problem.
I want to show 5 post in this blog loop. 2 of them are featured. and now it shows 3 post! (there enough posts to show 5 posts)now what?!
Forum: Themes and Templates
In reply to: hide some posts; my code does not workthanks for your reply
but both codes do not work!Forum: Fixing WordPress
In reply to: My sent mail goes to spam!and this is the report when I use [email protected] as sender.
https://www.isnotspam.com/newlatestreport.php?email=ins-a5x1aro5%40isnotspam.com
you see, there is exactly no different on these reports:
Forum: Fixing WordPress
In reply to: My sent mail goes to spam!This is my IsNotSpam.com report:
https://www.isnotspam.com/newlatestreport.php?email=ins-xh325jtw%40isnotspam.com
Forum: Plugins
In reply to: [WP Change Default From Email] always spam!in fact when I use [email protected] address it’s ok.
but when I change it to [email protected] it goes to Spam!!Forum: Plugins
In reply to: [WP Change Default Email] always spam!in fact when I use [email protected] address it’s ok.
but when I change it to [email protected] it goes to Spam!!