This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if (have_posts()) : ?> | |
| <?php while (have_posts()) : the_post(); ?> | |
| <div class="post" id="post-<?php the_ID(); ?>"> | |
| <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> | |
| <?php echo get_post_meta($post->ID, 'PostThumb', true); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Add this to your functions.php: | |
| <?php add_action('admin_menu', 'add_gcf_interface'); | |
| function add_gcf_interface() { | |
| add_options_page('Global Custom Fields', 'Global Custom Fields', '8', 'functions', | |
| 'editglobalcustom elds'); | |
| } | |
| function editglobalcustom elds() { ?> | |
| <div class="wrap"> | |
| <h2>Global Custom Fields</h2> | |
| <form method="post" action="options.php"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <title> | |
| <?php if (function_exists('is_tag') && is_tag()) { | |
| single_tag_title('Tag Archive for "'); echo '" - '; | |
| } elseif (is_archive()) { | |
| wp_title(''); echo ' Archive - '; | |
| } elseif (is_search()) { | |
| echo 'Search for "'.wp_specialchars($s).'" - '; | |
| } elseif (!(is_404()) && (is_single()) || (is_page())) { | |
| wp_title(''); echo ' - '; | |
| } elseif (is_404()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Add to functions.php within the theme folder. | |
| function create_my_taxonomies() { | |
| register_taxonomy('actors', 'post', array( | |
| 'hierarchical' => false, 'label' => 'Actors', | |
| 'query_var' => true, 'rewrite' => true)); | |
| register_taxonomy('producers', 'post', array( | |
| 'hierarchical' => false, 'label' => 'Producers', | |
| 'query_var' => true, 'rewrite' => true)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^/?basic/(.*)$ /basic/index.php/$1 [L] |
NewerOlder