Fawzi
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Additional thing in urlWhy? Is it related to google news?
Forum: Everything else WordPress
In reply to: Url paginationOkay, thanks for explaining…
Forum: Everything else WordPress
In reply to: Plain text only commentI don’t know. Could you give me a pointer? Thanks
Forum: Fixing WordPress
In reply to: Admin approval for account registrationThanks for the explanation
Forum: Developing with WordPress
In reply to: Group pagination linksThing is I more likely need div for the numbers so I can display them centered while prev/next is floating.
Forum: Developing with WordPress
In reply to: post class output category and tag onlyYes, thank you. How to output tag nickname?
$tag_html[0]->nicename
doesn’t work.Forum: Developing with WordPress
In reply to: post class output category and tag onlysomehow this is worked.
$cat_html = get_the_category(); $tag_html = get_the_tags(); echo 'class="' . $cat_html[0]->slug . ' ' . $tag_html[0]->slug . '"';
Forum: Everything else WordPress
In reply to: difference between page template and post format[wrong thread]
- This reply was modified 3 years, 9 months ago by Fawzi.
Forum: Everything else WordPress
In reply to: difference between page template and post formatgot it, thanks for explaining
Forum: Everything else WordPress
In reply to: comment replyingtrue. thanks anyway
Forum: Everything else WordPress
In reply to: difference between page template and post formatis the output different?
Forum: Everything else WordPress
In reply to: comment replyingreducing unused classes. as for styling, i thought it’s only need a class?
Forum: Everything else WordPress
In reply to: body classGreat, very helpful
Forum: Everything else WordPress
In reply to: why the loop seems changed?okay thanks, very clear answer
Forum: Developing with WordPress
In reply to: Group post by taxonomy and its paginationatm, i use this
<?php //for each category, show all posts $cat_args=array( 'orderby' => 'name', 'order' => 'ASC' ); $categories=get_categories($cat_args); foreach($categories as $category) { $args=array( 'showposts' => -1, 'category__in' => array($category->term_id), 'caller_get_posts'=>1 ); $posts=get_posts($args); if ($posts) { echo '<p>Category: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </p> '; foreach($posts as $post) { setup_postdata($post); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php } // foreach($posts } // if ($posts } // foreach($categories ?>
as you suggest to use
foreach
but it’s limited to certain amount of post because i doesn’t have pagination.