- Back to work, pay day is upon us. #
- Spread the truth, Iranian's want peace and are protesting/ revolting against the Regime. Photos from Iran: http://bit.ly/xwcZY #iranelection #
- RT @Axela23 Just had a conversation with my Iranian coworker about the election. Great to hear the perspective of a national. #iranelection #
- I made my web design / development contract available for everyone, just enter your info and press submit! http://tr.im/oAIV #
- @phildunn I just built it using PHP, It started as a word doc from a laywer that I edited to my liking. It is just a sample contract. in reply to phildunn #
- @phildunn You can use it for your clients as well, and I might add some more features (logo's, different contracts, optional terms, etc..) in reply to phildunn #
- Free Sample Contract Generator l need beta testers, and I might add some more features (logo's, different contracts, optional terms, etc..) #
- http://dev.complimedia.com/contract/ #
- @cbfreedom Depends on the project, but generally around $250-$500 for on-site and $25/hour from then on for copy writing & link building in reply to cbfreedom #
- Save some trees by using virtual business cards, find out how on my blog: http://tr.im/odVM #green #eco #business #
- @cebradesign thanks for the comment and tweet! Did you have any suggestions? in reply to cebradesign #
- Having trouble with javascript validation, anyone have a #jQuery suggestion? Link: http://tr.im/oAIV #
- I found the best #jQuery validator script at http://tr.im/oBh0 #
- @cebradesign thanks, I added a feedback widget and validation to it, I got a few ideas i'll add if their is enough interest. in reply to cebradesign #
- RT @heartnsoul The killer virus for totalitarian regimes delays its maintenance hours #thanx #twitter #iranelection #
- MY blog's sidebar is now much smaller and animated! http://blog.complimedia.com #
- @cbfreedom thanks, SEO is kind of fun because you get to watch the results grow. I also do local search optimization and copy-writing
in reply to cbfreedom # - RT @tweetmeme Necessity of a Clean Markup http://bit.ly/rlu06 #
- @legalgeekery Hey! I made a contract generator, I'd love to get a your legal opinion, it can be found here: http://tr.im/oAIV #
- RT @jonasl First Look: Object Oriented CSS http://to.ly/h6k #
- @legalgeekery Am i practicing law by providing a sample contract generator? I had seen others and I put a disclaimer on, should I remove it? in reply to legalgeekery #
- Iranians want peace, thousands of people rally for fair elections and peace in iran PHOTOS: http://ow.ly/eGIj #iranelection #
- @legalgeekery haha ok, you scared me. I took it off-line until I speak to my attorney just in case. in reply to legalgeekery #
- I just reached level 10. #spymaster http://bit.ly/playspy #
- LOL, who are you trying to fool microsoft?: Windows Internet Explorer 8: Get the facts http://ow.ly/eJO8 #
- This is mesmerizing, create your own Snowflakes: http://ow.ly/eJSG #
- RT @TreeBanker A healthy natural environment is our safety net for Climate Change: http://tinyurl.com/lrd9gk #
- RT @the_gman 5 Simple Tips for Proofreading Your Copy http://bit.ly/1a9CoM #
- RT @DiscountCapital Financing for alternative energy projects: http://ow.ly/eRRu #
- Run your own proxy server for the people of Iran, if you got a Apache its EASY! http://ow.ly/eTbE #iranelection #gr88 Tehran #
- @muthusuba i think feedgit is open beta now in reply to muthusuba #
Tag Archives: Widget
How To: Show future posts in wordpress
Aside
Have you wanted to display your upcoming posts on your wordpress blog? I have been wanting to plan out my posting for this blog for awhile. Normally I just get a whim to post something and do it from start to finish. This brings about sloppy posts that need to be updated a lot. The solution for me was to create a “draft” of the post I thought of and work on it as I did more research or had a new idea. I know their are plugins for this but I generally like to do things myself and by not using a plugin it keeps the loading speed fast.
When I think of upcoming posts I think of both scheduled and ready post as well as saved drafts so the code I used shows both. It is easy to change to one or the other however and the change is included below. So here is how I put my upcoming posts on my sidebar.
- First I opened up my sidebar.php which can be edited under Appearance on the dashboard menu. Or be a geek and use ftp and a text editing program. This is much safer because you can backup your file if you make a mistake. First download the file your changing to your computer as a backup. Then select the sidebar.php file on the server and “edit” it from your a ftp program. Here is a good list of FTP applications for mac or windows and linux.
- Found a good place for the future posts to go. What order, If you have widgets enabled put it above or below the widget php code.
- Add the following code into the sidebar.php file inside of a div with the same class the other div’s use. A good way to do it is look at the structure of any other sidebar div. So if you see this:
<div class="sidebar-box">*code*</div>
then you know you can put this code inside another
<div class="sidebar-box"></div>
and it will look alright (hopefully). Make sure not to copy a div with a id because ID’s can only be used once while class’s are made to be used on multiple elements
<?php $my_query = new WP_Query('post_status=future,draft&showposts=10'); ?> <div class="sidebar-box"> <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?> <ul> <li> <?php the_title(); ?> </li> </ul> <?php endwhile; else: ?> <div> <ul> <li><?php _e('No upcoming Posts'); ?></li> </ul> </div> <?php endif; ?> </div> |
If you want to customize it a little more:
You can of course can add a header above the code to tell visitors what they are seeing. Usually wordpress themes use a h2 header.
So right after
<div class="sidebar-box"> |
add something like this:
<h2>Upcoming Posts</h2> |
Their is also a timestamp available for scheduled posts that can be added with this code but it shows the date a draft was saved. So only use it if you are just showing future posts and not drafts.
Add
<?php the_time('l, F jS, Y') ?> |
after
if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?> |
You can also put the code wherever you want in your theme by removing the sidebar-box class from the code.
Of course any questions or feedback would be appreciated! The original code I used was from Kishore on his blog post: Display UpComing Posts on your Sidebar – WordPress Blogs
My new website Twuoted.com
Aside
I made a new twitter app this past weekend called Twuoted. Basically it pulls any tweets with the #quote hashtag onto on website. Currently it is in public beta and I am adding new features but it already has built in search, and links back to tweet that was twuoted. Coming soon will be dynamic twitter avatars, user search, and more! I have a feedback widget from Get Satisfaction on the site so users can suggest new ideas, ask questions, or give praise or other comments.
To get started with Twuoted, simply tweet a quote with the hashtag #quote and it will show up on the site automagically! You can also follow @Twuoted on twitter for updates, and handpicked quotes by me!
Looking forward to more great quotes from twitter and feedback! If you have some ideas use the feedback widget on Twuoted.com