WordPress – Show Posts by User/Author/Displayname
A good colleague of mine is using his domain with WordPress for his entire family, but want to have a page per family member showing only their posts.
Although this might not be the exactly right solution, it could be done by:
- Installing the plugin Exec-PHP for WordPress which allows to excute PHP code in widgets, posts and pages and can work on multi userlevels with restrictions.
- Find the display name of the user who’s posts you want to display.
- Create a page in WordPress and insert the code:
<?php query_posts(‘display_name=INSERT_DISPLAY_NAME_HERE’); ?>
<?php while (have_posts()) : the_post(); ?>
<h4><?php the_title(); ?></h4>
<?php the_content(); ?>
<?php endwhile;?>
- Now go to the page…. My test is here PeterDB’s Page
I will try to update the code so it shows the posts in the same style as the front page, so more to come.
WordPress – Install Theme
Although my hosts and WordPress itself has some pretty good themes included, it is nice to add more.
You can get more here: http://wordpress.org/extend/themes/
There is the easy way to install the themes, i.e. just download the theme file, unzip on your computer, then upload the extracted folder and files to the wp-content\themes folder on your host.
But then there is also the smart and so much easier way of doing it:
- Find the theme that you want and copy the URL to the theme download. For Pixeled the currently most popular theme, that URL is http://wordpress.org/extend/themes/download/pixeled.1.9.1.zip
- SSH to your host
- Navigate to the folder WP-Content\Themes
- Use the commend wget <URL> && unzip <DOWNLOADED_FILE> && rm <DOWNLOADED_FILE>. For Pixeled that command “wget would be http://wordpress.org/extend/themes/download/pixeled.1.9.1.zip && unzip pixeled.1.9.1.zip && rm pixeled.1.9.1.zip”
- Now hit enter, it will download the theme, unzip it and delete the file all in one command.
Back at work
So, I am finally back at work after having been away since the 18th of March. Today will only be a short day, since I need to go to the final post-op doctors visit at 14:00. When I have some time I will take the time and effort to write in more detail about the whole tonsilectomy surgery.
Parking Ticket
Crap… I forgot to put my parking permit up in the car and now I got a parking ticket for 40 CHF. I need to find out if I can object to it..
iPhone – Bookmarklet – uTorrent
Found a great uTorrent bookmarklet: http://forum.utorrent.com/viewtopic.php?id=38228
But yet again, without being able to copy-paste on the iPhone (I am not planning on jailbreaking my iPhone now or ever) it is not easy to add the bookmarklet. So again, here are the links below to make it easier.
uTorrent – Add Torrent (Note: You still need to modify the javascript to add the IP of your uTorrent server)
iPhone – Bookmarklet – New Page
So to make an good post; Doctyper made a good post and bookmarklet to open iPhone Safari links in a new page and also a bookmarklet to reverse it (Doctyper post). Downside the way it is presented it is not possible to add the bookmarklet if you are not using a PC or MAC and have Safari installed. So instead I am making this post (and future ones with more bookmarklets) to make it possible to add the bookmarklet while you are only using the iPhone.
When clicking the link below it open in a new page and you can remove everything below the hash-sign including the hash-sign before adding the bookmarklet.
Want Bookmarklets
Hello,
So the reason why I open this blog is mainly so I have easier access to my bookmarklets. I got annoyed that I couldn’t get the excellent open in new page bookmarklet from Doctyper, since I was not using Safari on my computer and had no intention of installing it. I want my bookmarklet via iPhone directly.
So here goes the attempt…
Click here to open the link in a new page, then add the link to the iPhone bookmarks, but remove all text before “javascript:”. LINK
It worked…




