Topic: bug on lastest headlines (Home menu)

Hello,
Great theme you have here.
I have already posted this question somewhere but I guess it was misplaced.
I am on Arras Theme 1.4.3
I have the following bug : In lastest headlines, I chose to show News posts from all categories, but this option does not work. It works though if I choose a specific category.
Then in Layout, I am choosing the option "After The Post Content", but it does not work, it stays before the post.
I am hosted by hostmonster, does it matter ?
What shoud I do ?
Thank you for your help.

Thumbs up

Re: bug on lastest headlines (Home menu)

Is it the same as here? http://www.arrastheme.com/forums/topic1 … ffset.html

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: bug on lastest headlines (Home menu)

Thank you very much for your answer.
Ok I see this is indeed the offset. I would prefer to have it as an option though.
What about the Layout question, I am choosing the option "After The Post Content", but it does not work, it stays before the post?

Thumbs up

Re: bug on lastest headlines (Home menu)

In 1.5 it's (or it will be) an option.

To get things straight: you are talking about the custom fields, right? Not about categories and date and stuff?

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: bug on lastest headlines (Home menu)

Yes, I am talking about the "Position of Custom Fields" option in the menu Layout

Thumbs up

Re: bug on lastest headlines (Home menu)

Hm. This is odd. When I try it on my local install it works fine. What's the content of your filters.php?

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: bug on lastest headlines (Home menu)

Here it is

<?php
/* Remove Gallery CSS to make code more compliant */
function remove_gallery_css() {
    return '<div class="gallery">';    
}

/**
 * Called to display post heading for news in single posts
 * @since 1.2.2
 */
function arras_postheader() {
    global $post, $id;
    
    if ( is_single() ) {
        if ( is_attachment() ) $postheader .= '<h1 class="entry-title">' . get_the_title() . ' [<a href="' . get_permalink($post->post_parent) . '" rev="attachment">' . get_the_title($post->post_parent) . '</a>]</h1>';
        else $postheader = '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h1>';
    } else {
        if ( is_attachment() ) $postheader .= '<h2 class="entry-title">' . get_the_title() . ' [<a href="' . get_permalink($post->post_parent) . '" rev="attachment">' . get_the_title($post->post_parent) . '</a>]</h2>';
        else $postheader = '<h2 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h2>';        
    }
    
    if ( !is_page() ) {
        $postheader .= '<div class="entry-info">';
    
        if ( arras_get_option('post_author') ) {
            $postheader .= sprintf( __('<span class="entry-author">By %s</span>', 'arras'), '<address class="author vcard">' . get_the_author() . '</address>' );
        }
        
        if ( arras_get_option('post_date') ) {
            $postheader .= ' &ndash; <abbr class="published" title="' . get_the_time('c') . '">' . get_the_time(get_option('date_format')) . '</abbr>';
        }
        
        if (current_user_can('edit_post')) {
            $postheader .= '<a class="post-edit-link" href="' . get_edit_post_link($id) . '" title="' . __('Edit Post', 'arras') . '">' . __('(Edit Post)', 'arras') . '</a>';
        }
        
        if ( arras_get_option('post_cats') ) {
            $post_cats = array();
            $cats = get_the_category();
            foreach ($cats as $c) $post_cats[] = '<a href="' . get_category_link($c->cat_ID) . '">' . $c->cat_name . '</a>';
            
            $postheader .= sprintf( __('<span class="entry-cat"><strong>Posted in: </strong>%s</span>', 'arras'), implode(', ', $post_cats) );
        }
        
        $postheader .= '</div>';
    }
    
    if ( arras_get_option('single_thumbs') ) {
        $postheader .= '<div class="entry-photo">' . arras_get_thumbnail('featured-slideshow-thumb') . '</div>';
    }
    
    echo apply_filters('arras_postheader', $postheader);
}

/**
 * Called to display post footer for news in single posts
 * @since 1.2.2
 */
function arras_postfooter() {
    global $id, $post;
    
    $postfooter = '';
    
    if ( arras_get_option('post_tags') && !is_attachment() && is_array(get_the_tags()) )
            $postfooter .= '<div class="tags"><strong>' . __('Tags:', 'arras') . '</strong>' . get_the_tag_list(' ', ', ', ' ') . '</div>';

    echo apply_filters('arras_postfooter', $postfooter);
}

/**
 * Called to display post meta information in single posts (review scores, product information, etc.)
 * @since 1.2.2
 */
function arras_postmeta($content) {
    global $post;

    $postmeta = '';
    
    $custom_fields_list = arras_parse_single_custom_fields();
    
    if ($custom_fields_list) {
        foreach($custom_fields_list as $field_id => $field_name) {
            if ( $field_value = get_post_meta($post->ID, $field_id, true) ) {
                $postmeta .= '<div class="single-post-meta clearfix">';
                $postmeta .= '<span class="single-post-meta-field single-post-meta-' . $field_id . '">' . $field_name . '</span>';
                $postmeta .= '<span class="single-post-meta-value single-post-meta-' . $field_id . '-value">' . $field_value . '</span>';
                $postmeta .= '</div>';
            }
        }
    }
    
    if ( arras_get_option('single_meta_pos') == 'bottom' ) return $postmeta . $content;
    else return $content . $postmeta;
}

/**
 * Displays when the specified post/archive requested by the user is not found.
 * @since    1.2.2
 */
function arras_post_notfound() {
    $postcontent = '<div class="single-post">';
    $postcontent .= '<h1 class="entry-title">' . __('That \'something\' you are looking for isn\'t here!', 'arras') . '</h2>';
    $postcontent .= '<div class="entry-content"><p>' . __('<strong>We\'re very sorry, but the page that you are looking for doesn\'t exist or has been moved.</strong>', 'arras') . '</p>';
    
    
    $postcontent .= '<form method="get" class="clearfix" action="' . get_bloginfo('url') . '">
    ' . __('Perhaps searching for it might help?', 'arras') . '<br />
    <input type="text" value="" name="s" class="s" size="30" onfocus="this.value=\'\'" />
    <input type="submit" class="searchsubmit" value="' . __('Search', 'arras') . '" title="' . sprintf( __('Search %s', 'arras'), wp_specialchars( get_bloginfo('name'), 1 ) ) . '" />
    </form>';
    
    $postcontent .= '<h3>Latest Posts</h3>';
    $postcontent .= '<ul>';
    $postcontent .= wp_get_archives('type=postbypost&limit=10&format=custom&before=<li>&after=</li>&echo=0');
    $postcontent .= '</ul>';
    $postcontent .= '</div></div>';
    
    echo apply_filters('arras_post_notfound', $postcontent);    
}

/* End of file filters.php */
/* Location: ./library/filters.php */

Thumbs up

Re: bug on lastest headlines (Home menu)

Hm, it's not different from my one.

Do you have a link to your site?

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: bug on lastest headlines (Home menu)

Here it is:

http://www.heztok.com/agiftforrayane/

Thumbs up

Re: bug on lastest headlines (Home menu)

So, any clue ?

Thumbs up

Re: bug on lastest headlines (Home menu)

Polipop wrote:

So, any clue ?

it should work if you create a correct custom field....

note the difference between >> Socre and score

we got more than what we are giving back....

Thumbs up

Re: bug on lastest headlines (Home menu)

Oh ! I see... I thought this one was refering to author information which I wanted at the bottom of the post..... My mistake, sorry. Will the placement of author information be available in 1.5?

Thumbs up