This little trick can be useful for calling custom functions and printing the title with out spaces for W3C compatibility. I used this trick in a new theme called Galleria, which will be out for public download in the coming days.
Using this comes in handy for a delicious text link:
What I am doing is calling $title = get_the_title(); and using str_replace(" ", "%20", $title); to replace empty spaces with a %20, which is used in URL encoding empty spaces.
For the longest time I remember checking out my WordPress stats via this Stats plugin and it always cut of my day at 4pm. This was because it only collected the stats via UTC time. Well check out this post where andy talks about the latest version 1.4 retroactively changing depending on your blog’s timezone. ¶
As seen in the current theme, I am using jQuery to animate the show/hide or as known as the css style display: none;.
Since I am using a custom child theme on my site, and have Hybrid theme as my parent, the widgets or sidebar section is different than may be in your theme. But just apply the the style’s as follows to your theme.
First make sure that your WordPress site is calling jQuery, by plugging in this code into your header.php file above the <?php wp_head(); ?> text:
<?php wp_enqueue_script('jquery'); ?>
Then anywhere above the </head >, plug this code in:
In my new theme, I am using this coded trick to display the excerpt on a single post only if I’ve got text inside. Usually if you use the_excerpt and you don’t have one, it will fake one for you.
This is not something that I wanted to do on the single post page. So I used the following code to check if the excerpt existed.
if ( !empty( $post->post_excerpt ) ) :
Once this action is taken into account, you can factor in what code you want to out put if the post_excerpt isn’t empty.
Okay, so by now you may notice something. You may be thinking “the site looks a lot different”, and you are correct. Over the past few weeks I’ve decided that the site needed a different flare and feel. While many and most site’s these days are popping up with featured posts, and jQuery sliders, I wanted to steer away from that and go old school. While I had some trouble’s activating the theme today which didn’t allow me to fully finish the theme, 99% of it is done.
The site is still build on the powerful Hybrid theme framework. Enjoy.
So at this time Shen, myself and possibly Michael Dorausch. will be doing a panel presntation at 6:00pm in track 3 of the BarCamp room here in the OTX facility.
So after some time playing with many options and idea’s I’ve finally released a premium theme. This theme, which I am calling CULT[i]VATE is a child theme.
Unfamiliar with child themes? You may want to check out this post Ian Stewart wrote.
Hybrid is a user-friendly, search-engine optimized theme framework, featuring 14 custom page templates and 9 widget-ready areas, allowing you to create any type of site you want.
CULT[i]VATE includes four new widget-ready area’s and one custom accordion widget for one of the area’s. It also includes two front page templates.
This theme is for sale for $12.00 which you can purchase here. Looking for a demo?
I was just working on re-launching my forum in preparation of the new theme I am going to release sometime this week. And while in the bbPress admin section I noticed some spammers had registered, a little over two hundred fifty to be exact.
While I was looking at the bbPress site, I came across this article: TalkPress and bbPress. It talked about a new VIP service that Automattic is working on for forum integrations, like WordPress.com.
So what might this mean? Well I think after many verbal attacks to Matt Mullenweg by many attendees of the last few WordCamp’s, the first official stable release of bbPress could be close to launch!
TalkPress itself is not open for public signup at this stage. Currently we are bringing on a few “VIP” partners so that we can run-in the platform in a more controlled way. The pioneers on the service are Time Inc. who are incorporating a TalkPress forum into their Health.com website. I’m happy to report back to the bbPress community that TalkPress (and thus bbPress) withstood their rigorous security testing with flying colours. This testing incorporated, amongst other things, comprehensive XSS and SQL injection tests.
As for bbPress, some movement has occurred in the priorities leading up to a final 1.0 release. Some of the more fundamental changes that were planned are being put on the back-burner so that these aims can be achieved:
Full compatability with both WordPress 2.7 and 2.8
Easier integration steps for WordPress MU
Retaining compatibility with the existing catalogue of current plugins
Just announced by Matt himself, that they finally acquired wp.com from Yahoo. Head over to the WordPress.com blog, leave a comment for what you think they should do with the domain. ¶
As for now the domain: www.wp.com redirects to wordpress.com. ¶
I’ve had some time the last few days while my XPS computer has been having difficulties and the Dell replacement parts didn’t fix, what I know now to be a faulty LCD screen.
So I’ve made a few updates and changes to my WordCult theme. The new version is: 0.3.
A lot of changes to the core files, many files have been changed, removed and moved. So please if upgrading, backup your database. The core folder has been changed from wordcult2 to wordcult so you may want to just upload it as another theme and activate it.
For any other changes please view the changelog or view the readme file.
If you’ve noticed any issues please contact me or leave a comment.
Update for 0.3.0.1:
This was fast.. I forgot to add a function to my sub_page_menu .
Update for 0.3.1.1:
Crucial update! Fixes an spelling error in the metaboxes.php file, which could pose an issue with your custom fields like the “image” dynamic resizer.
Recent Comments