go41

how to display posts dated one year ago in sidebar

von Joern am 11. Feb. 2009 | Keine Kommentare

hi, i would like to show some posts from about one year ago in the sidebar of my WordPress blog.

Can you help me?

(von: f-t-cat)

Hier noch 240 weitere Ergebnisse dieses Threads:

Re: how to display posts dated one year ago in sidebar :: Reply by Joern

11. Feb. 2009 (von: Joern)

@cat:to get the posts of the current month and current year you find this code in WordPress Codex:Code:<?php $current_month = date('m'); ?><?php $current_year = date('Y'); ?><?php query_posts("cat=22&year=$current_year&monthnum=$current_month&order=ASC"); ?><!-- put your loop here -->With this code and a modified current_year variable…

Re: how to display posts dated one year ago in sidebar :: Reply by Joern

12. Feb. 2009 (von: Joern)

Another piece of code to get 4 random old post listed in your sidebar.php of wordpress is this:Code:<h3>Oldies but Goodies</h3><ul><?php global $wp_query; $rndposts = get_posts('numberposts=4&offset=15&orderby=rand()'); foreach($rndposts as $post) : setup_postdata($post); ?><li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li><?php endforeach; ?></ul>put…

Display category bar on every page in Arthemia free theme

29. Apr. 2009 (von: Joern)

To display the category bar of Arthemia WordPress Theme free version on all pages you can try this:At the end of header.php the last line should be: <div id="page" class="clearfloat">below this put:Code:<?php /* If this is not home because index.php…

Optimize Arthemia Free SEO Friendly

3. Mai. 2009 (von: Joern)

Someone asked if it's enough to put a H1 tag around the title of his Arthemia site to make the template more SEO friendly.My opinion I want to give you here:looking at your (or any other) site with styles disabled…

Set font size range for hot tags in bb_tag_heat_map

3. Mai. 2009 (von: master)

As long tags got truncated in by overflow hidden in my hot tags display, I looked for a way to adjust the size for biggest and smallest tags in this BBPress 0.9.0.4 heatmap.That's by far not as easy as in…

wordpress title shows ‚ – part 1‘ on first page

14. Mai. 2009 (von: chris)

If you suddenly see in the title of your wordpress site something like:yourblogname - part 1or on next pageblogname - part 2then I guess you are using the 'all in one seo pack' plugin, right?To remove this ' - part…

Position a div absolute on top and align it center with CSS

15. Mai. 2009 (von: Joern)

I wanted to bring up the div with the login to the top of this page. Actually this 'div login' is loaded before the footer at the end of the page, to bring it to the top I tried using…

how to show only the first tag of a post in WordPress

16. Mai. 2009 (von: f-t-cat)

can anyone give me a hint how to show the first tag associated with a post only and leave other tags out? I need this for the tab titles of a tabbed content for tags. Weiterlesen →

Re: how to show only the first tag of a post in WordPress :: Reply by Joern

16. Mai. 2009 (von: Joern)

this code should echo only one (first) tag of a post, you should use it inside the loop or create a loop around this:Code:<?php $mytags = get_the_tags() ; $count=0;if (!empty($mytags)) {foreach($mytags as $tag) { $count++;if (1 == $count) { echo…

different image in header or sidebar by page ID

23. Jun. 2009 (von: master)

If you want to load different header images, banners or an image in the sidebar, you can use a simple piece of php code.Let's say your normal image loads like this:<img src="<?php bloginfo('template_url'); ?>/images/logo.jpg" alt="" width="900px" height="250px" />now you replace…

threaded comments in theme arthemia, how to

1. Jul. 2009 (von: ernesto)

Many people love the WordPress feature of threaded comments. As this option is available in wordpress now, I would like to use it.Many older themes do not support this feature, it's not built in and just doesn't work.Anyone an idea…

Re: threaded comments in theme arthemia, how to :: Reply by master

19. Jul. 2009 (von: master)

In arthemia you could take the code below as modified comments.php<?php// Do not delete these lines if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if ( post_password_required() ) { ?> <p class="nocomments">This post…

How to sort the result of a query, latest posts reverse

21. Jul. 2009 (von: Joern)

How to take a wordpress query and display the resulting 4 posts in reverse order?Let me give you an example:In the theme Arthemia is on the top right side a section called 'Featured', which queries for the 4 latest posts…

Re: threaded comments in theme arthemia, how to :: Reply by member

28. Dez. 2009 (von: member)

Hello,Thank you for the reply.So basically I open comments.php, select it all, delete it and out in:Code:<?php// Do not delete these linesif (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))die ('Please do not load this page directly. Thanks!');if ( post_password_required() ) { ?><p…

Re: threaded comments in theme arthemia, how to :: Reply by Joern

28. Dez. 2009 (von: Joern)

that's right, replace actually the whole file with this new content.Finally the bigger problem is the style.css, you have to add new code and delete old stuff as it will not display correctly with all left in.____________________you find me on…

Re: threaded comments in theme arthemia, how to :: Reply by member

28. Dez. 2009 (von: member)

Hello,It doesn't seem to work for me.I have a plugin installed for threaded comments but this theme breaks it by putting the break in between.However I ignored the plugin and edited the code and when I replied it didn't become…

Re: threaded comments in theme arthemia, how to :: Reply by Joern

29. Dez. 2009 (von: Joern)

did you enable threaded (nested) comments under Settings - Discussions?Set it to minimum 2 levels deep to work____________________you find me on Google+, Twitter and Facebook Weiterlesen →

Re: threaded comments in theme arthemia, how to :: Reply by member

29. Dez. 2009 (von: member)

Yes I did. And it doesn't come out 'nested'. If I reply, the reply comes right at the end instead of next to the person's comment. Weiterlesen →

Re: threaded comments in theme arthemia, how to :: Reply by Joern

29. Dez. 2009 (von: Joern)

is your site online? for me it works as can be seen here:T-Rex 450 XL mit Fusuno retract kit____________________you find me on Google+, Twitter and Facebook Weiterlesen →

Re: threaded comments in theme arthemia, how to :: Reply by member

29. Dez. 2009 (von: member)

okay it works now when I disabled the plugin.arabic doesn't work.do you know how to fix it? Weiterlesen →

Re: Position a div absolute on top and align it center with CSS :: Reply by qtest

5. Apr. 2010 (von: qtest)

How can I have a fixed div at the bottom of the browser containing newsletter subscription field and/or RSS feed and/or Social Media icons? Something like http://garcya.us/ Also suggest which plugin I should use for newsletter subscription.Zafar http:/... Weiterlesen →

Re: Position a div absolute on top and align it center with CSS :: Reply by master

5. Apr. 2010 (von: master)

to get a div staying on bottom and not scrolling use something like:#bottomfx {background:transparent;bottom:0;height:40px;left:0;position:fixed;width:100%;}and put your submit form in a div id bottomfxin your case just try to give your #bookmarks the... Weiterlesen →

Re: Position a div absolute on top and align it center with CSS :: Reply by master

5. Apr. 2010 (von: master)

I see you just put it there, but your tag cloud is in front of it.The swf has to be in transparent mode, you can try to set this in WP-Cumulus Options under 'use transparent mode'____________________you find me on Google+,…

Modify Arthemia WP Theme

1. Nov. 2010 (von: ambermck)

Hi everyone!I recently installed Arthemia on my WP site, and need to make a couple of changes. Can anyone help with this:1.) How do I move the category bar up so that it is below the nav bar? I have…

Re: Modify Arthemia WP Theme :: Reply by f-t-cat

1. Nov. 2010 (von: f-t-cat)

to move the category bar up you have to edit index.php in your arthemia theme folder.It looks now something like this:Code:<?php get_header(); ?>   <?php if(!is_paged()) { ?>   <div id="top" class="clearfloat">      <div id="headline">here is a lot of stuff for headline........ …

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: