Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jianchung

    (@jianchung)

    I 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 🙂

    Thread Starter jianchung

    (@jianchung)

    I 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” }

    Thread Starter jianchung

    (@jianchung)

    jlevan: 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 got bool(false) as an output haha! Nice try!

    Thread Starter jianchung

    (@jianchung)

    alchymyth, tried that but it didn’t work as well…. 🙂 thanks for the help

    Thread Starter jianchung

    (@jianchung)

    Sorry, the line $the_id = '$category->cat_ID'; should read $the_id = $category->cat_ID; 😀

    Thread Starter jianchung

    (@jianchung)

    I have resolved the problem by adding the code clear:both; and the footer goes down automatically!

    jianchung

    (@jianchung)

    archiepeep 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

Viewing 7 replies - 1 through 7 (of 7 total)