Tag Archives: PHP

A New Plugin – Plugin’s Last Updated Column

So Karissa asked me at WordPressKc’s Meetup group if I knew of a plugin that would show when plugins were last updated on the admin plugin’s page.  Right now you’d have to search up the plugin on wordpress.org to find this information.  I didn’t know of a plugin with this functionality, so Karissa suggested that would be a good idea for a plugin.  I told her I would look into this when I get some time.

I finally had some time yesterday to sit down and figure this out.  3 Hours after I started, it was done.  I’ve submitted this to WordPress.org’s plugin repository.

https://wordpress.org/plugins/plugins-last-updated-column/

More information can be found: http://stevenkohlmeyer.com/plugins-last-updated-column/

WP-Config Disable Cron

define(‘DISABLE_WP_CRON’, true); //Disable page load cron

WordPress › Support » How to disable wp_cron via page loads and run it manually instead?.

Marc Ghorayeb • MongoDB schema definitions in Li3

Marc Ghorayeb • MongoDB schema definitions in Li3.

Adding Tags to lithium blog.  I found how to use list items / nested strings
in lithium using mongo.

More useful resources include: http://blog.raymondjulin.com/2011/01/06/list-of-useful-lithium-li3-resources/

http://cogfactory.net/2010/12/10/lithium-framework-blog-tutorial-extended-mongodb/

Lithium Error lithiumactionDispatchException (Code #404)

Error lithiumactionDispatchException (Code #404)

 

If you’re experiencing this issue, navigate to your current lithium project’s folder and run: li3 test /

 

Enabling DOMDocument in php

How to enable DOMDocument in php.

Putty SSH Shell Login

Well you can take the time to recompile php, but that’s just a pain. Now if you have SSH Shell access to your linux server running php, this can be pretty easy. I’m running CentOS 5, let me know if this doesn’t work for you. Run the following command in your shell (logged in with root):

BAM! Let it find all the files needed, say YES to download, then let it install and restart your apache to reload all your php and it’s modules.

WordPress Starter Plugin

Everything you need to write your own plugin. This is the starter solution. It shows how to plugin with your own class to wordpress, already set up custom functions. This is version 1 of this empty plugin. The admin menu (with a submenu), a settings page, another settings page. You can do just about anything your heart desires with wordpress, and plugging into it is pretty easy. Check this out:

WordPress custom menu disappear on home page when using custom post types and/or taxonomies.

Wordpress custom menu disappears on home page.

As you’re developing a theme, you try one of WordPress’s newer options: Custom Post Types.  Searching the internet you stumble upon Justin Tadlock’s blog.  You try his way of showing custom post types on your home page of your wordpress blog.  Then boom. You’re custom menu is not showing on your homepage.  Now what do you do.

I spent about a week going back and forth with my custom taxonomies, and WordPress 3.0’s new custom menu editor trying to figure out why the hell my home page isn’t showing my custom menu.  It shows all on my other pages.

Out of all the code, from all over the internet, that I used.  I had put the following code in my functions.php hoping to show my custom post types.

This code works, unless you’re using a custom menu you’ve made in the back end of wordpress.  This will for whatever reason (to which I have not investigated) make your custom menu’s disappear from your home page faster than a rabbit can crap.  So I’ve spent a whole week investigating my custom taxonomies, and wordpress’s custom menu editor, when the only thing I messed up was using Justin Tadlock’s code.

Here is what you do instead of putting that jargon of a excuse for code into your functions.php:

Pick any of your template files that show your posts or pages: pages, loop, home, index, or whatever single-{taxonomy name}.php you want to edit and add your custom post types to and add the following code above the loop:

or whatever you needs may be:

Happy coding, and careful who’s blog you read 😉 Thanks JustinTadlock I was stuck on that crap for a week.

~Steven Kohlmeyer