With WordPress, I wanted to display a list of the latest 5 posts from the category in which the displaying post is located. I needed to do this outside the loop because I wanted to list the posts in the sidebar. For the life of me couldn’t find anywhere on the net how to do this. Being as I wanted to display these in the sidebar, I had to work out a way of calling the cat_id globally. I’m no programer and at best can only edit or manipulate the simplest of variable, but finally mashed together an answer, several hours later o_O. Ordinarily, inside the loop one would only need to use get_the_category() but in this case the following code is required in order to pull the category ID for use outside the loop: (more…)
It is not always best to have all of your pages indexed and cached by the search engines. Also not all links should be followed, therefore some editing of your wordpress header might be in order. Here is what I sometimes do.
Place the following in your wordpress themes header.php file, if the page is a single, page, or if its the home page then the robots will index and follow links on it. Otherwise search engines will not index the pages but will still follow the links. (more…)
<embed style=”width: 212px; height: 257px;” id=”VideoPlayback” type=”application/x-shockwave-flash” xsrc=”web-address-of-the-video-you-want-to-view” mce_src=”web-address-of-the-video-you-want-to-view” flashvars=””>
That’s it… Simply replace ‘web-address-of-the-video-you-want-to-view’ with either youTube or Google Video url and set the appropriate video dimensions.