go41

list selected categories with 3 latest posts each

von Joern am 11. Mrz. 2009 | Keine Kommentare

I want to supply you with a WordPress code to list some selected categories and following the category link 3 posts from each of this cat.

If you have any question about styling, pls ask here.

The query:

Code:

<?php $display_categories = array(5,6,7,8,4); foreach ($display_categories as $frontcats) { ?>
KATEGORIE: <a href="<?php echo get_category_link($frontcats);?>"><?php $this_category = get_category($frontcats); ?><?php echo $this_category->cat_name; ?> &raquo;</a><br />
<?php $catposts = get_posts("showposts=3&cat=$frontcats"); foreach($catposts as $post) : setup_postdata($post); ?>
POST: <a href="<?php the_permalink() ?>" ><?php the_title(); ?></a><br />
<?php endforeach; // end of cat n posts ?>
<?php } ?>

(von: chris)

Hier noch 35 weitere Ergebnisse dieses Threads:

Comments: remove author URL link

14. Jun. 2010 (von: adamwork)

This is my code for comments:Code:<?php if ($comments) : ?>   <h3 id="comments"><?php comments_number('No Comment', '1 Comment', '% Comments' );?></h3>   <ul class="commentlist">   <?php foreach ($comments as $comment) : ?>   <?php    $isByAuthor = false;    if($comment->comment_author_email == get_the_author_email()) {    $isByAuthor…

custom field issue solved but still have layout issues

14. Jun. 2010 (von: omerkhan02)

Joern my test site is hereUser: adminpass: Digital1 or Ironman21Anyways Joern, I got the social icons to go on the same plane. As you see there are two instances of them, both were in a div called "SOCIALMEDIA" SO THE…

Re: custom field issue solved but still have layout issues :: Reply by Joern

14. Jun. 2010 (von: Joern)

to bring the buttons down add some margin to the div above:#featured {margin-bottom:15px;}now add here also float left as just explained in the other thread:#featured {float:left;margin-bottom:15px;}____________________you find me on Google+, Twitter a... Weiterlesen →

Re: Comments: remove author URL link :: Reply by Joern

14. Jun. 2010 (von: Joern)

this gives the authors name with link:<?php comment_author_link(); ?>this shows the admin name if the comment is by the owner of the site:<?php if($isByAuthor ) { echo '(author)';} ?>replace comment_author_link(); with comment_author(); and... Weiterlesen →

Any tips for moving Arthemia to new server?

15. Jun. 2010 (von: Hanscrafter)

As the topic says! Weiterlesen →

Re: Any tips for moving Arthemia to new server? :: Reply by omerkhan02

15. Jun. 2010 (von: omerkhan02)

Follow the steps in this link Weiterlesen →

can you recommend any good turnkey solutions for this site

15. Jun. 2010 (von: omerkhan02)

I am developing a Villa booking portal for a client. I can't find any wordpress plug in or theme that handles this. Essentially, I want in the sidebar or on the main page a search box which allows you to…

Re: Any tips for moving Arthemia to new server? :: Reply by Hanscrafter

15. Jun. 2010 (von: Hanscrafter)

Thanks! I had pretty good success using this article but I was just wondering if there was anything Arthemia specific. I had to do a few adjustments (re-upload all my images from within WordPress for example) but overall, it wasn't…

Problems with Footer in IE7

15. Jun. 2010 (von: adamwork)

Hi allThis is my code in the php - footer:Code:<div id="footer-container">       <div id="footer">       <div id="front-popular" class="clearfloat">         <div id="recentpost" class="clearfloat">            <h3>Stay in touch</h3>» Contact us» RSS feeds» Email alerts   …

Re: Problems with Footer in IE7 :: Reply by Joern

15. Jun. 2010 (von: Joern)

hard to say without seeing it live..but why you use float left for the fineprint? It should align left without a float. And instead of hr (horizontal line) I would use border-top in cssA horizontal ruler looks in different browsers…

Re: can you recommend any good turnkey solutions for this site :: Reply by Joern

15. Jun. 2010 (von: Joern)

frankly speaking - no idea, sorry. You might extend your search to a solution to rent something in general like a car, a tank , sound-equipment or something else.Coming across an existing site check the source code for the cms…

Incorporating H1 text in Arthemia

17. Jun. 2010 (von: drwhom)

Hi Joern, Been doing a bit of SEO work on www.iamstaggered.com and I was wondering if you could help me work out how to incorporate H1 text on pages without it looking really dumb!Currently if I insert H1 text anywhere…

Re: Incorporating H1 text in Arthemia :: Reply by Joern

17. Jun. 2010 (von: Joern)

I would use h1 for the page title - in header.php.In one of my themes this looks like this:Code:<div id="logo" class="left">         <h1><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>"><?php bloginfo('name'); ?> - <?php bloginfo('description');…

need your help with excerpt/read more link issue!

18. Jun. 2010 (von: omerkhan02)

Joern, You can visit my site here:I have 3 posts that are on the frontpage, I want the first two from the top to have read more links, which I control the length of but the last post which has…

Re: need your help with excerpt/read more link issue! :: Reply by Joern

18. Jun. 2010 (von: Joern)

in any post, if you use the_content in your template, you can use the 'more' tag to cut the post. in index it will show to this point if there is, in single it shows the full post.here http://codex.wordpress.org/Customizing_the_Read_More the…

Re: need your help with excerpt/read more link issue! :: Reply by omerkhan02

18. Jun. 2010 (von: omerkhan02)

Thanks, now one final question. My frontpage post content is centered in IE but left aligned in FF. I want it to be left aligned in IE, can you help me with this.Lastly, is there any way I can order…

Re: need your help with excerpt/read more link issue! :: Reply by Joern

18. Jun. 2010 (von: Joern)

I tried my best to find this problem but somehow I can't find.If you look your site in IE with styles disabled you will see that everything from div id bottom down looks centered.My advice, validate your style.css and repair…

Re: need your help with excerpt/read more link issue! :: Reply by omerkhan02

18. Jun. 2010 (von: omerkhan02)

So you mean that there is no way to align my text to the left in IE. I have to have it centred OH NO! Weiterlesen →

Re: need your help with excerpt/read more link issue! :: Reply by Joern

18. Jun. 2010 (von: Joern)

I mean it aligns wrong because of errors you have in your code. The way to do this I just told you.by default text is aligned to the left, no need to specify this.I believe it's because you use a…

Re: need your help with excerpt/read more link issue! :: Reply by omerkhan02

18. Jun. 2010 (von: omerkhan02)

Lastly Joern, where can I put a black border top and bottom after each frontpage post like on thissiteOmar Weiterlesen →

Re: need your help with excerpt/read more link issue! :: Reply by Joern

18. Jun. 2010 (von: Joern)

under .forumitemor for recent posts under .recentitemif you mean the top posts, there is a hr tag for this horizontal line, you can style hr too.closing for today, going to do karate now____________________you find me on Google+, Twitter and Facebook…

Re: need your help with excerpt/read more link issue! :: Reply by omerkhan02

18. Jun. 2010 (von: omerkhan02)

After and before each post on the frontpage I ant a h3 line or border, like they have on the VA site.Omar Weiterlesen →

Re: need your help with excerpt/read more link issue! :: Reply by omerkhan02

18. Jun. 2010 (von: omerkhan02)

Actually Joern I downloaded FCK Editor and left aligned my text. It is left aligned now. I just want to know how to color the H3 long linesYOu see it in the frontpage posts, it is like--------------------------------------------Post content------------... Weiterlesen →

Re: need your help with excerpt/read more link issue! :: Reply by omerkhan02

18. Jun. 2010 (von: omerkhan02)

I figured it out. thanks man! Weiterlesen →

Arthemia Free and WordPress 3.0

18. Jun. 2010 (von: onwardft)

First of all, does anyone know what happened to the Arthemia Free forums at the originator's web page?and second of all, Has anyone tried Arthemia Free with Wordpress 3.0 to see if it works properly?Thanks for your help and support…

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: