ariefbayu
  • Member for 11 years, 5 months
  • Last seen more than a month ago
Formating the display of a post's date, outside the Loop
Accepted answer
7 votes

I'm using something like this: date('F, Y', strtotime($data[0]->post_date));

View answer
How to Delete Old Comments by Date?
5 votes

You could easily do this using mysql: DELETE FROM wp_comments WHERE comment_date < DATE_ADD(CURDATE(), INTERVAL -6 MONTH)

View answer
Resetting comment count
Accepted answer
5 votes

Try this code: WARNING: THIS IS JUST PSEUDOCODE! $entries = $wpdb->get_results("SELECT * FROM wp_posts WHERE post_type IN ('post', 'page')"); foreach($entries as $entry) { $post_id = $entry-&...

View answer
Software for WordPress Theme and Plugin Development?
5 votes

I'm developing on ubuntu (currently running 10.04). For wordpress development, I use: geany (quick editing script) eclipse (when on full development) RapidSVN (or eclipse's SVN plugin) FileZilla ...

View answer
if statement on database query
Accepted answer
4 votes

On your if(), it should be like this: if (!($wpdb->get_row("SELECT voter_ip FROM " . $wpdb->prefix . "voter_ips WHERE post_id = $post_id AND voter_ip = '$voter_ip'") Notice the quotation mark ...

View answer
Updating my plugin without releasing a new version
4 votes

yes, it's absolutely possible. When you've done developing your plugin, you set Stable Tag field on trunk/readme.txt to, lets say 1.0.1 This value should match with Version field on your plugin's ...

View answer
Stopping People Viewing Draft Posts
Accepted answer
3 votes

Yes, you (read: the logged in user) will be able to see the drafted post. But, a guest will not be able to read it. To test it, login to one browser and create a draft. See its URL in another browser ...

View answer
How to Show Different Sidebars on Specific Pages?
2 votes

I prefer widget logic over widget context. However, I can't recall the reason of it.

View answer
WordPress prompt checklist before publish?
Accepted answer
2 votes

Create new plugin and add this as your the content: <?php /* Plugin Name: [CR]TestDropIn Plugin URI: http://bayu.freelancer.web.id/ Description: A barebone plugin to test whatever wordpress API ...

View answer
Use a wordpress page to display a certain category
1 votes

First, you will need to create custom page template. Refer to this page to see how to create it. Second, on that page (you can copy from your page.php/index.php, the important part is: if (...

View answer
Having problems with paging
1 votes

Correct me if I'm wrong. I guess you use that code to custom display a category. If that's the case, right before this code: <?php while (have_posts()) : the_post(); ?> You will need to add ...

View answer
WordPress book for graphic designers?
Accepted answer
1 votes

Some said this rockable book is awesome, though I don't buy it myself. I'm backend wordpress developer not front end, so I guess this book is not for me.

View answer
Moving to directory creates path problems.. how to solve?
1 votes

You need to manually update your database to fix images path on posts / pages. I believe there's plugin that do this. I'll update this answer later when I found one.

View answer
Tools for styling code snippet in a web page
0 votes

If you use free wordpress without ability to install plugin, you can use online free service to convert your code into styled HTML called Quick Highlighter

View answer
Custom form, shortcode, and submit handler
Accepted answer
0 votes

I take die() as solution. Though, I don't prefer this. $redirect_link = get_permalink(35) ; //page that has form $script_redirect = "<div>Your form is submitted. Please wait a moment. If your ...

View answer
Notification when certain posts are published
0 votes

You can use [CR]Post2HelloTXT for this. Add a twitter account and then add Tweetymail notification to be notify when new twit arrived.

View answer
Form to Add Posts to Custom Post Type (Again)
0 votes

You can add it on your processing section: if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == "new_post") { Just below: $pid = ...

View answer
Get posts after today (upcoming events)
0 votes

This doesn't directly answered your question. I use this snippet on my sidebar, to get future posts: <ul> <?php query_posts('post_status=future&order=asc&orderby=date'); //The Loop ...

View answer
I need a plugin in wordpress like google tasks
0 votes

You can try wp-note though it's not as close as google notebook. Because, this plugin will link your notes to posts.

View answer