jianchung
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Getting category Id by slugI read around and got and idea. The values output are strings but not integer, so I tried using
$the_id = (int)$category->term_id;It didnt work but instead returned a 0 value after i echoed it. Later on when I removed the
(int)term, the code worked perfectly!Wierd! Case closed 🙂
Forum: Fixing WordPress
In reply to: Getting category Id by slugI tried the var_dump($category) and got a whole bunch of gibberish 🙂 Any idea what this means?
object(stdClass)#314 (15) { [“term_id”]=> &string(2) “28” [“name”]=> &string(42) “Kuchai Lama Goon Wah XO Fish Head Mee Hoon” [“slug”]=> &string(42) “kuchai-lama-goon-wah-xo-fish-head-mee-hoon” [“term_group”]=> string(1) “0” [“term_taxonomy_id”]=> string(2) “28” [“taxonomy”]=> string(8) “category” [“description”]=> &string(0) “” [“parent”]=> &string(1) “0” [“count”]=> &string(1) “3” [“cat_ID”]=> &string(2) “28” [“category_count”]=> &string(1) “3” [“category_description”]=> &string(0) “” [“cat_name”]=> &string(42) “Kuchai Lama Goon Wah XO Fish Head Mee Hoon” [“category_nicename”]=> &string(42) “kuchai-lama-goon-wah-xo-fish-head-mee-hoon” [“category_parent”]=> &string(1) “0” }
Forum: Fixing WordPress
In reply to: Getting category Id by slugjlevan: I was created categories based on the pages so they match. The intention was to pull the category based on the page slug, then pull the id and output it into a function 🙂
alchymyth: I removed the quotes but still it did not work. Added the
var_dump($category)and I gotbool(false)as an output haha! Nice try!Forum: Fixing WordPress
In reply to: Getting category Id by slugalchymyth, tried that but it didn’t work as well…. 🙂 thanks for the help
Forum: Fixing WordPress
In reply to: Getting category Id by slugSorry, the line
$the_id = '$category->cat_ID';should read$the_id = $category->cat_ID;😀Forum: Themes and Templates
In reply to: bbv1 theme – wrapper doesnt go all the way downI have resolved the problem by adding the code clear:both; and the footer goes down automatically!
Forum: Fixing WordPress
In reply to: Sidebar moves to bottom of posts in bbv1 themearchiepeep your suggestions worked.
I on the other hand have another problem while i was trying to make the theme float in the middle, the #rap column just wont wrap over the content. The footer just goes all the way up.
Anyone can help?
My site: http://ahyen.com