Archive by Author

Matthew Inman would high five a vagina if he could

21 Jul

Mathew Inman would high five a vagina if he could, but he can’t? Get your Google hat on and do it. I really want to see people start Googling, “Matthew Inman would high five a vagina if he could” just to see if it really turns into a suggestion. Ha!  Check out this post to know what I am talking about. It’s seriously funny and I think everyone should at least do it once so we can see if this makes it.

In case you don’t know who Matt Inman is, he is a super funny dude at The Oatmeal (google it) and basically he just writes funny comics and little stories. If you still don’t know who Matthew Inman is all we can say is, shame on you!

Best Category Pages in Thesis Theme 1.8 – Guarenteed!

12 Jun

I do a lot of work with Thesis theme and now they have a Custom Loop API which makes it even better than it was before. While I am not a php guru by any means I have managed to put this [awesome] structure for category pages together. I commented it so that people would know what is going on….the result is at the bottom so you know what it looks like…style it as your please…

The final code:

//CUSTOM CATEGORY LOOP//
$loopty_loop = new seans_loop; //START THE LOOP
function bm_dont_display_it($content) { //START THE FILTER TO NOT SHOW CATEGORIES IF THERE ARE NONE
  if (!empty($content)) {
    $content = str_ireplace('<li>' .__( "No categories" ). '</li>', "", $content);
  }
  return $content;
}
add_filter('wp_list_categories','bm_dont_display_it');//END THE FILTER TO NOT SHOW CATEGORIES IF THERE ARE NONE
class seans_loop extends thesis_custom_loop {
function category() {
	if ( is_category() && !is_paged() ) {
	thesis_archive_intro();
	echo "<div class=\"post_box top\">\n";
	echo "\t<div class=\"format_text\">\n";
	echo "\t<div class=\"artz\">\n"; //MAKE A DIV AROUND RECENT ARTICLES SO I CAN FLOAT SIDE BY SIDE WITH SUBCATEGORIES
	echo "<h3>Related Articles:</h3>";
	echo "\t\t<ul>\n";
	while (have_posts()) {
		the_post();
		echo "\t\t\t<li><a href=\"" . get_permalink() . "\">" . get_the_title() . "</a></li>\n";
	}
	echo "\t\t</ul>\n";
	echo "\t</div>\n"; //ENDS THE RELATED POSTS DIV
	//this is where I start the if statment for the subcategories...if I can ever figure this fucking thing out
	echo "\t<div class=\"subs\">\n"; //MAKE A DIV AROUND SUB CATTYS SO I CAN FLOAT SIDE BY SIDE WITH ARTICLES
	echo "<h3>Sub Categories:</h3>"; //H3 FOR NAME OF SUBCATEGORIES
	$cat_id = get_query_var('cat'); //GET THE CURRENT SUB CATTY DYNAMICALLY
	wp_list_categories('orderby=id&show_count=0&hide_empty=1&use_desc_for_title=0&hierarchical=0&title_li=&child_of=' . $cat_id); //LIST THE SUBCATEGORIES
	echo "\t</div>\n"; //ENDS THE SUB CATTYS DIV
	//add another if statement for the rest of the stuff if you get the 1list part on line 592
	echo "\t</div>\n";
	echo "</div>\n";
	}
	if ( is_category() && is_paged() ) {
	echo "<div class=\"post_box top\">\n";
	echo "\t<div class=\"format_text\">\n";
	echo "<h3>Related Articles:</h3>";
	echo "\t\t<ul>\n";
	query_posts('posts_per_page=20'); //THIS SETS OUT THE AMOUNT OF POSTS WE WANT TO SHOW WHEN THE PAGE IS_PAGED
	while (have_posts()) {
		the_post();
		echo "\t\t\t<li><a href=\"" . get_permalink() . "\">" . get_the_title() . "</a></li>\n";
	}
	echo "\t\t</ul>\n";
	echo "\t</div>\n";
	echo "</div>\n";
	}
}
}
//END THE CUSTOM CATEGORY LOOP//

and here is the CSS I used to float it next to each other:

.subs{
	float:right;
	width:49%;
}
.subs li.cat-item {
    list-style: disc outside url("http://www.startuploans.org/images/list.gif");
    margin: 0 10px 0 60px;
}
.artz{
	float:left;
	width:49%;
}

The Result for main category Page:

page 1 category page thesis theme

The result for pages that are paged (is_paged):
page 2 thesis theme category pages is_paged

Here are also some articles that helped me get to where I needed to be and understand everything:

So, there you have it- a custom category loop using Thesis Theme 1.8+ Custom Loop API. :-)

Beachway Therapy Center

6 Apr

Beachway Therapy Center is a private affordable drug and alcohol treatment facility. We have15 full time employees to care for and assist our 16 guests in their journey to recovery. This translates into unsurpassed individualized therapy and counseling for our guests and their families. We offer family counseling, education and encourage families to get involved. Beachway Therapy Center is a state licensed treatment facility dedicated to provide intensive, deep therapy to addicts and alcoholics suffering from the disease of addiction. Our policy is to utilize professionally trained therapists who specialize in specific areas of addiction treatment to obtain our goal of intensive, deep-rooted therapy. Two therapies used by our professionals are EMDR and Hypnotherapy, along with other main stream therapeutic processes to achieve our goal of reaching deep within the client and discovering the core issues to be addressed. Our personalized treatment plans are designed to address other issues such a Trauma, Grief and Loss, Borderline, Bipolar Disorder, Depression, Anxiety, Anger Issues, Sex addiction, Eating Disorders and more.

Beachway Therapy Center offers both music and art therapies in our 1500 square foot studio to encourage creativity and enhance the recovery process for individuals struggling with substance and alcohol abuse.