wedes
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Developing with WordPress
In reply to: add_image_size plays with meHey @mdshak
thanks for your answer. I changed the large size in “Media Settings” to 2048 x 2048px and tried it again. But my KingSize option still doesnt works. I also changed the medium size… nothing happens.Some other ideas? ??
Forum: Developing with WordPress
In reply to: Custim template displays only 11 postsYOU wont imagine:
its not WordPress, its jquery used like this:
Take the class “topic” and show only 11 results. Hide the other.
So thanks for Your help!!!
I learned how to write shorthand custom post types.
Wish you the bestForum: Developing with WordPress
In reply to: Custim template displays only 11 poststhanks @subhasisnayak,
the first plan is working. Your second example returns the same result like my code. Your first example returns what i need. So:Yours:
// Please note - You need to change the n to number of posts like 9, 15, 18 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php static $count = 0; if ($count == "n") { break; } else { ?> // html to decorate <div class="post"> <?php the_title(); ?> <?php the_content(); ?> </div> // html to decorate <?php $count++; } ?> <?php endwhile; ?> <?php endif; ?>
returns every public post
Now combine with mine:
// Please note - You need to change the n to number of posts like 9, 15, 18 ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $article_date = get_the_date('d.m.Y'); $post_id = get_the_id(); static $count = 0; if ($count == "800") { break; } else { echo '<section id="'.$post_id.'" class="topic"> <span id="article-date">'.$article-date.' </span> <br><h3>';the_title(); echo '</h3> '; the_content(); echo '<br></section>'; <?php $count++; } ?> <?php endwhile; ?>
returns only 11 posts again…
Viewing 3 replies - 1 through 3 (of 3 total)