Example #1
0
    ?>
		<?php 
    while (have_posts()) {
        the_post();
        ?>

			<div <?php 
        post_class(is_linked_list() ? "linked_list" : "");
        ?>
 id="post-<?php 
        the_ID();
        ?>
">

		    <?php 
        if (is_linked_list()) {
            ?>
			    <h3><a href="<?php 
            the_linked_list_link();
            ?>
" title="<?php 
            the_title_attribute();
            ?>
"><?php 
            the_title();
            ?>
</a></h3>
			  <?php 
        } else {
            // is_linked_list
            ?>
Example #2
0
/** 
 * get_{$adjacent}_post_where hook
 */
function dfll_mod_adjacent_bis_where($where)
{
    global $wpdb;
    $use_custom_category = get_option('dfll_use_custom_category');
    $exlude_custom_category = get_option('dfll_custom_category_exclude');
    $hide_nav = get_option('dfll_custom_category_hide_nav');
    if ($use_custom_category == 'on' && is_linked_list() && $hide_nav == 'on') {
        $where .= " AND 1 = 0 ";
        // This might be a bit of a hack, but it works.
    } else {
        if ($use_custom_category == 'on') {
            if (is_linked_list()) {
                if ($exlude_custom_category == 'on' && $hide_nav == 'on') {
                    $where .= " AND {$wpdb->terms}.name = '" . get_option('dfll_custom_category_name') . "'\n          AND {$wpdb->term_taxonomy}.taxonomy = 'category' ";
                }
            } else {
                if ($use_custom_category == 'on' && $exlude_custom_category == 'on') {
                    $where .= " AND {$wpdb->terms}.name != '" . get_option('dfll_custom_category_name') . "'\n        AND {$wpdb->term_taxonomy}.taxonomy = 'category' ";
                }
            }
        }
    }
    return $where;
}
Example #3
0
<?php

/*
Template Name: Archives
*/
get_header();
query_posts("showposts=-1");
?>
  <div id="cos">
    <div class="page archivos">
  <?php 
$data = "";
while (have_posts()) {
    the_post();
    if (!is_linked_list()) {
        if (get_the_time("m/Y") != $data) {
            ?>
    <h2><?php 
            echo the_time("F \\d Y");
            ?>
</h2>
    <?php 
        }
        ?>
    <h4>
      <a href="<?php 
        echo the_permalink();
        ?>
"><?php 
        echo the_title();
        ?>