cc licensed ( BY NC ND ) flickr photo shared by .m for matthijs I’m hoping to carve out some time soon to get back to the garage and return to tinkering with WordPress. To that end, I spent some time categorizing new and old posts, so I have a collection now of things blogged about using WordPress at http://cogdogblog.com/wp. Here at CogDogBlog, I’ve had some challenges with what I think is memory issues- lots of 404/not found on admin pages, and worse, strongs of deadly 500 Internal Server errors for visitors. Not good. No, not good. My web server error logs are full of the not very helpful “premature end of script headers” for index.php. You could spend years combing through the google results for this. What follows is not a definitive answer to this situation, just some guesses and results of my attempts to make it stop. To [...]
CogBlogged Tagged ‘wordpress’
Stuffing ds106 into an Archive
Woah, it is ending? ds106 is almost over? Sigh. Well, sincr i have blog posts dribbled over the last few months, I thought about organizing it a bit better here in the doghouse- it’s not quite archiving, but it does feel like the suitcase needs help to get closed. cc licensed ( BY NC SD ) flickr photo shared by demandaj What I talk about below in likely un-reproducible code is what I did to generate http://cogdogblog.com/tag/ds106 Doing this has been part of some other WordPress tinkering around here. The current template here has 2 widgetized sidebars, and I shifted the rightmost one to be the “standard” one that appears on all pages. The left side one, by default, will have blog related things, but I also now use it on a few templates to create more relevant bits. To allow for a new widget, I edited my functions,php template [...]
Taking Old WordPress Menus to School
cc licensed ( BY NC ND ) flickr photo shared by ailatan With a relaxing day of nothing definite to do, I decided to poke around the corners of the blog house and clean up some dust gathered in the corners of my theme. Themes that predate WordPress 3, like mine, do not take advantage of the newer menu editing options. Old school themes were typically set up to turn Pages into menus, for example mine is wedged inside the header.php template: <ul class="menu"> <li class="<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a title="<?php bloginfo('name'); ?>" href="<?php bloginfo('url'); ?>">Da Blog</a></li> <?php wp_list_pages('depth=1&title_li=&include=1358,887,2929,1620'); ?> </ul> where I have picked the pages listed by their id numbers to appear. This is rather tedious to edit and manage, and I also ran into issues because I [...]
NaNoWriMo-ing In the Open
cc licensed flickr photo shared by zenobia_joy Against every sane, rational, “I’m so over committed I’m gonna explode” thought, I have decided to plunge my hand again into National Novel Writing Month (NaNoWriMo), the challenge where aspiring, and maybe aspired, writers take on the goal of writing a 50,000 word novel over a one month time span. I have always liked writing, but had never done anything substantial or larger than a long blog post, so it was one of those items I listed long ago on 43 Things. I had heard of NaNoWriMo, and it seemed analogous to running a marathon — a goal you keep telling yourself you cannot do– until you try. Last year I made my 50,000 mark (I burned a lot of adjectives up in the process), finished, and got through about 1 1/2 rounds of later edits before hanging it out to dry (see [...]
Barking Dog Photo Blog
Note: Updated December 7, 2010 for use of new theme…. Nothing like a little WordPress hacking to get back in action. A few months ago I registered the domain barkingdog.me as a place intended to set up a photo gallery, but decided today to finally get around to hanging something for real there. My goals were to have a clean site with ginormous images, and also something that would be little fuss to add. On my NMC work in creating the MIDEA site I had set up an account to have access to the Graph Paper Press themes — yes, these are paid for themes, but are very elegant and sophisticated. I did moderate hacking to the Modularity theme for the MIDEA site, but was liking their photo gallery themes, and landed on Widescreen Fullscreen. With a few hours tweaking and adding one moderate hunk of code, I have what [...]
Rolling New Tweet Button into WordPress
UPDATE Jan 6 2012: While the code should still work, I have disabled this approach on my own blog, instead using the Sharing tool built into the JetPack plugin. Twitter has created a new widget that makes it more friendly to provide a tweet this button from your own web sites, blogs, etc. The benefit is that it pops a window up with the twitter functionality, so you are not sending people from the web site. See the announcement from the twitter blog to learn more. The tweetbutton creation widget makes it easy to generate the code, and has a umber of options to choose from for the appearance of the button and what gets prefilled in the tweet (plus with their new url shortener t.co is one letter shorter than competitors!). The sample code includes a Javascript link to the library that provides the functionality- <a href="http://twitter.com/share" class="twitter-share-button" data-count="none" [...]
Coding My Own WordPress Authors List
cc licensed flickr photo shared by bitzcelt Elwood: It’s 106 miles to get this sidebar coded, we’ve got a full tank of gas, half a pack of cigarettes, it’s dark and we’re wearing sunglasses. Jake: Hit it. I have no idea why I opened this way except for Jim Groom Inspiration. But to jive my code chops, there’s nothing more energizing than doing a little hack and chop coding in WordPress. Today I was again doing some sidebar fine tuning on the NMC MIDEA web site (previously covered in my almost done series on doing custom post types in WordPress 3.0). It was one of those “oh this might take 20 minute” deals that ended up going a bit longer. but like Jake and Elwood, when you gotta go to Chicago, you drop the sunglasses and hit it. And this is pretty simple, and most likely there is a plugin [...]
Pinning WordPress 3 Custom Content to the Map (b)
cc licensed flickr photo shared by QualityFrog In a previous long winding post, Dressing up and Displaying WordPress 3 Custom Post Content (a), I tried to document the first part of my WordPress 3 site I manipulated the new Custom Content types. It seems it takes longer to explain that to build, and in the end, I’m wondering if it is even explained. Leading up to this, I began by overviewing the plans for a new web project, we set up the places to create the new content types, and introduced the benefits using child themes. Then we dove headfirst into the code to create the interface and data elements to add/edit the custom meta data for each of the three content (post) types. Getting your content onto your site is a matter of manipulating The Loop and then writing new side loops where needed to put things on the [...]
Dressing up and Displaying WordPress 3 Custom Post Content (a)
cc licensed flickr photo shared by Thomas Hawk Yikes, where did the time go? I’ve let slide the next piece in my now fractured series on using the custom post types added in WordPress 3.0. As a recap, what I am sharing is what I learned back in April (using the beta version of WP3) to create the NMC MIDEA web site. This site had a need to create, besides the usual page and blog post types, other content for projects, organizations, and events, each with its own extra custom meta-data. Before I go crazy with PHP here, I want to note that this will get technical and is written really for myself as a set of notes and others who have no hesitation to roll up their sleeves and muck around with templates and code. This is not the optimal way to use the new WordPress features, and it [...]
Put on Your HazMat Suits- Setting Up Metadata For WordPress 3 Custom Content Types
cc licensed flickr photo shared by StayRAW In the previous posts in this series of using the new WordPress 3 Custom Post Types (I keep calling them custom content types, same thing), I overviewed the plans for the MIDEA web site, we set up the places to create the new content types, and diverged into some set up magic using child themes. That was the easy stuff. Now I get into the parts I had to more or less invent on my own (well, with some good leg ups from others)- how to add all of the form field elements to my new content types so I could add extra information to them. This are fields for say, my Organization content types, to have a field to enter their web site address, latitude/longitude for doing some mapping, etc. Now I did this all in custom code, and as hopefully I [...]




