How to automatically highlight syntax of code in a post?
There’s a whole bunch of plugins that do that. After some reading i decided to go with Syntax Highlighter Evolved.
There’s a whole bunch of plugins that do that. After some reading i decided to go with Syntax Highlighter Evolved.
I’m wondering if i should refactor my plugin using a ‘private’ Observer/Mediator pattern ie. collect all relevant add_actions to my parent class only and baking up a pattern to notify/forward subclasses of events, reducing the impact of my plugin to WP event ques. The event queue is fundamental to WP, so it’s pretty fast and … Read more
Templatic has one called Q&A WordPress. Here is the demo.
This shouldn’t be very difficult. WPs Template Hierarchy should get you started on what page loads every time. You’ll probably be best maintaining minimal header.php and footer.php and working your logic on single files, named as per the Hierarchy. Then, head to add_meta_box() and update_post_meta() to implement those selectors for css and js and also … Read more
An alternative to a “skinnable” theme framework like Carrington (which indeed is awesome) is to integrate a design you’ve done from scratch. This is how I learned how to create custom WordPress themes. Note: this is a hacky method that involves lots of experimentation. But if you’re like me, and learn best when you’re playing … Read more
Why not just ask them to estimate how much it will cost to change the layout for 600+ pages. And then ask them if they think their customer will pay for that, versus a designer using WordPress. One important thing to point out is that Dreamweaver is a tool on your computer for creating the … Read more
If the search field is implemented as a widget, this can be done via the administration interface. Just navigate to Appearance > Widgets and drag the search widget from the widget area to the “Available Widgets” pane. If the search field is hard-coded into the theme, it might be easier to edit the CSS rather … Read more
Custom UI is great where it improves the experience and makes the task easier. After all, a plugin extends WordPress and therefore a lot of the time is extending the user interface. This might mean a screen that is arranged completely differently to any other screen, but if it is logical and understandable then there’s … Read more
Spaghetti with meatballs The term “spaghetti with meatballs” is a pejorative term used in computer science to describe loosely constructed object-oriented programming (OOP) that remains dependent on procedural code. It may be the result of a system whose development has included a long life cycle, language constraints, micro-optimization theatre, or a lack of coherent coding … Read more