1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

Cosa, Yulia, Ghabah, Ujang, Keeper, DOneeh ... !!! Tanya DOng :-p

Discussion in 'Wordpress' started by domainischeap, Aug 18, 2006.

  1. domainischeap

    domainischeap Ads.id Pro

    Joined:
    Mar 5, 2006
    Messages:
    309
    Likes Received:
    1
    atau siapa aja dech ... he he he

    di wp khan ada <?php the_title(); ?>
    yang munculin title posting kita.

    kalo keluaran ( alias tulisan judul ) itu mau kita tangkep sebagai variabel gimana caranya sih ?

    apa $var=the_title(); ?
    apa $var=$the_title(); ?
    apa $var="the_title()"; ?

    Gmn dong .. he he he ;D ;D ;D ;D ;D
     
  2. cosa

    cosa Super Hero

    Joined:
    Aug 30, 2005
    Messages:
    1,561
    Likes Received:
    168
    sebelumnya, kalo mo cari info ttg fungsi" bawaan WP, paling gampang search di google dng query "wordpress codex namafungsi". At least lebih cepet daripada harus ubek" codexnya, hehehe.

    untuk the_title, bisa pake cara spt ini:

    Code:
    $x = the_title('','',false);
     
  3. domainischeap

    domainischeap Ads.id Pro

    Joined:
    Mar 5, 2006
    Messages:
    309
    Likes Received:
    1
    Makasih .. he he he ...
    udah tak cari2 bingung :p

    the_title() dah bisa ...
    kalo the_content() .... kok gak bisa ya mas ?
    Piyee tho ?
    Code:
    $x = the_content('','',false);
    << gak iso .. :-(
     
  4. cosa

    cosa Super Hero

    Joined:
    Aug 30, 2005
    Messages:
    1,561
    Likes Received:
    168
    harus pk hidden / internal function, gak ada di codex --> get_the_content() :)
     
  5. domainischeap

    domainischeap Ads.id Pro

    Joined:
    Mar 5, 2006
    Messages:
    309
    Likes Received:
    1
    Iya .. barusan tak cari2 ... ;D

    bisa seperti ini

    $x=get_the_content($more_link_text = '', $stripteaser = 0, $more_file = '');

    Matur Suwun .. he he he
     
  6. lukick

    lukick Super Hero

    Joined:
    Jan 5, 2006
    Messages:
    804
    Likes Received:
    53
    wah om cosa sampe turun gunung... tak pm pm nggak di jawab.... halo om?
     
  7. aaheroe

    aaheroe Super Hero

    Joined:
    Sep 2, 2005
    Messages:
    940
    Likes Received:
    175
    Location:
    BENCOLEN
    kok aq ga di tanyain sih

    hickss
     
  8. domainischeap

    domainischeap Ads.id Pro

    Joined:
    Mar 5, 2006
    Messages:
    309
    Likes Received:
    1
    Yo wis .. ta tanya o ...

    Kalo di WP khan halaman search itu seperti di bawah ini :

    http://www.aaa.com/search/pisanggoreng
    atau yang pake ?s=pisanggoreng

    Nah aku tuh pengen ambil .. keyword " pisanggoreng " itu ...

    Cara ngambil nya biar jadi variable gimana sich .. bingung nich . .dah baca codex ........ abis .. skill pas2an :p

    Makasih yah ...
     

Share This Page