Tagged Questions
0
votes
1answer
18 views
How to display an icon when a new post is published and then remove it when a specific time past?
Every time i publish a new post i want to display an icon like a badge (NEW) and after a specific time it will disappear.
Lets say i publish a new post and i want to display that it is a new post. So ...
0
votes
2answers
50 views
How to output comments number of a post per day?
I have a question about the comment numbers in a post... For now, I can output the total number of a comment inside a post outside the loop. That's cool enough, but I want to get show the comment ...
1
vote
1answer
20 views
Changing the post date and time with function
What function can be used to update a post's post date and time to the current date & time?
0
votes
2answers
28 views
Plotting posts on a graph
Here is what i want to do:
For a specific date i want the number of posts from a certain tag.
For example: on 14th March i have a certain number of posts tagged "jazz".
I want to plot that number on ...
0
votes
1answer
43 views
Query posts from current year
I don't quite get why this isn't working. I'm trying to use the following to only show posts from the current year on the front page:
<?php query_posts( "&year=$current_year&order=DESC"); ...
0
votes
1answer
178 views
How to get date of post when using wp_get_recent_posts()?
I get the latest posts this way:
$args = array( 'numberposts' => '2' );
$recent_posts = wp_get_recent_posts( $args );
Then I loop through them and get information about the post this way:
...
0
votes
1answer
128 views
How to get posts published on the latest date?
Is there a way of getting all posts published on the latest date? It might not necessarily be today, it might be yesterday or the day before yesterday or even a day last week.
1
vote
1answer
26 views
date issue with category post retrival
I am trying to retrieve all posts from an rss feed from a category, and I have working code that does this. However, on one category I will only get all posts until a certain date. Any post prior to ...
0
votes
1answer
23 views
Last three posts not being put in order by date. How to fix this?
My company adds a quote of the day each day. The last three posts that I have put are not in order though. The first quote I posted 3 days ago is at the top the post I posted yesterday is under that, ...
1
vote
1answer
333 views
XML-RPC and post_date
I'm trying to set the post_date via XML-RPC and keep getting an error saying the XML isn't formatted properly. The code goes something like:
$post = get_post( $post_id );
$response = ...
0
votes
1answer
90 views
How to change text (date) in post base on the day
So the question seem unclear, i rewrite it to hope for the best and get some great ideas.
I write a WordPress Sticky post (always first on top). In that post text there is something written like : ...
5
votes
1answer
176 views
User-Specific Timezones? Hack? Plugin?
Is there any way, whether it be a hack, a plugin, etc., to give users their own timezone? I am using a purchased SMS plugin. Users (my clients) login and are able to send out text messages when they ...
-1
votes
2answers
202 views
the_time() cannot be placed correctly
I want to use the following code
the_time('d. F Y', '<p class="article-date">', '</p>');
to show the date of an article (post) wrapped within <p></p>. I also tried
echo ...
0
votes
1answer
2k views
How to get posts published between a date and today?
Is it a way to get posts published between a date and today with query_posts() ?
Example : All posts published since 2012-04-01
Thanks
EDIT :
How to add the filter date on this Query Posts ?
...
0
votes
1answer
74 views
How to display a certain template element only for posts published within certain time range?
I recently migrated a blog from sub.domain.com to blogs.domain.com/sub/. Because I'm using Facebook comments, all the posts published before April 25 need to reference sub.domain.com/blog-entry-title ...
0
votes
1answer
36 views
featuring old articles without messing up with the archive
This is all about featuring content in WP.
Say, you got 1000's of posts that you accumulated over the years and each has their own original ( and true ) post dates.
And now you want to feature them ...
0
votes
1answer
166 views
Order posts by date
I'm a girl and excuse my English.
Maybe its easy and I'm dumb to know it.
But here is the problem
I want to output on the homepage the posts from the lastest 3 days.
Like this:
30/03/12
post 1
...
5
votes
1answer
1k views
using wp_update_post on save_post
im trying to update a posts date (-1 year), when you hit update. but it causes an infinite loop.
any other ways of doing this?
thanks.
function change_year($post_id, $post){
if ( ...
1
vote
0answers
179 views
How to set post expiration date and time and move the page to archive after expiration [closed]
My requirement is to move the certain posts from home page category after specified date and time.
I have two category News and Events. Both have so many posts and i dont want to show all the posts ...
1
vote
1answer
446 views
Automatically republish old posts
been seaching on google for a plugin for this and can't seem to find anything realiable. The only plugin I found is called "old post promoter". Any ideeas?
Can this be done with googl old fashion ...