WordPress kullananlar için en önemli ve elimizin altında bulunması gereken temel tema kodları.
İşe yaraması dileğiyle..
1.Tema URL kodu:
[php]<?php bloginfo(‘template_url’); ?>[/php]
2. Site URL kodu:
[php]<?php bloginfo(‘siteurl’);?>[/php]
3. Header çağrı kodu:
[php]<?php get_header(); ?>[/php]
4. Sidebar çağrı kodu:
[php]<?php get_sidebar(); ?>[/php]
5. Footer çağrı kodu:
[php]<?php get_footer(); ?>[/php]
6. Include(Sayfa çağırma) kodu:
[php]<?php include (TEMPLATEPATH . ‘/pilsiz.php’); ?>[/php]
7. İçerik link kodu:
[php]<?php the_permalink() ?>[/php]
8. İçerik başlık kodu:
[php]<?php the_title(); ?>[/php]
9. Etiketler kodu:
[php]<?php the_tags(‘ ‘, ‘, ‘, ”); ?>[/php]
10. Yazar ismi kodu:
[php]<?php the_author(‘, ‘); ?>[/php]