go41

Arthemia Latest post show full content

von Joern am 2. Mai. 2012 | Keine Kommentare

Hi I just want the latest post should not display full post rather it should show the same as in headline "Read More" can anyone please please please suggest how to do that??

I am not a coder and don’t even know much about coding, if any change is required in the code, please paste the new code separately or please please very details how to do it.
website : www.killdbill.com
"Index.php"

—————————————————————————————

[pre]Code:


<?php get_header(); ?>
<?php

//Get value from Admin Panel

$cp_categories = get_categories('hide_empty=0');

$status1 = get_option( "colabs_preventHeadline" );

if ( $status1 != "No" ) {

$ar_headline = get_option( "colabs_headline" );

$ar_featured = get_option( "colabs_featured" );

}

?>
<div id="bottom" class="clearfloat">
<div id="bottom-left">
<?php if(!is_paged()) { ?>
<div id="front-list">
<?php query_posts(array(

'category__not_in' => array($ar_headline,$ar_featured),

'showposts' => 1,

)); ?>
<?php while (have_posts()) : the_post(); ?>

<?php global $ar_ID; global $post; $ar_ID[] = $post->ID; ?>
<div class="clearfloat">

<h3 class="cat_title"><?php the_category(', '); ?> »</h3>

<h2 class="title">" rel="bookmark"><?php the_title(); ?></h2>

<?php colabs_post_meta(); ?>

<?php

$width = get_option ( "colabs_thumbWidth_LatestPost" );

$height = get_option ( "colabs_thumbHeight_LatestPost" );

if ( $width == 0 ) { $width = 150; }

if ( $height == 0 ) { $height = 150; }

colabs_pp('width='.$width.'&height='.$height.'&size=medium-thumb&play=true&wrapper_class=left&link=img');

?>
<?php the_content(__('Read the full story »','colabsthemes')); ?>

</div>
<?php endwhile; ?>

<?php wp_reset_query(); ?>
</div><!--/#front-list-->
<?php } ?>
<?php add_filter('post_limits', 'my_post_limit'); ?>
<?php

global $myOffset;

$myOffset = 1;

$temp = $wp_query;

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

$wp_query= null;

$wp_query = new WP_Query();

$wp_query->query(array(

'paged' => $paged,

'offset' => $myOffset,

'category__not_in' => array($ar_headline,$ar_featured),

'post__not_in' => get_option( 'sticky_posts' ),

'ignore_sticky_posts' => 1,

)); ?>
<?php $column = get_option ( "colabs_status_Column" );

if ( $column != "one" ) { ?>
<div id="paged-list">
<?php if (have_posts()) : ?>

<?php $i = 1; ?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

<?php global $ar_ID; global $post; $ar_ID[] = $post->ID; ?>
<?php if( $odd = $i%2 ) { echo '<div class="clearfloat">'; } ?>
<div class="tanbox <?php if( $odd = $i%2 ) { echo 'left'; } else { echo 'right'; } ?>">

<h3 class="title">" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h3>

<?php

colabs_post_meta();
$width = get_option ( "colabs_thumbWidth_Column" );

$height = get_option ( "colabs_thumbHeight_Column" );

if ( $width == 0 ) { $width = 80; }

if ( $height == 0 ) { $height = 80; }

colabs_pp('width='.$width.'&height='.$height.'&size=small-thumb&play=true&wrapper_class=left&link=img');

?>
<?php $status = get_option ( "colabs_excerptColumn" ); if ( $status != "no" ) { ?>

<?php the_excerpt(); ?>

<?php } ?>

</div>
<?php if( $odd = $i%2 ) { } else { echo '</div>'; } ?>
<?php $i++; endwhile; ?>
<?php if( $odd = $i%2 ) { } else { echo '</div>'; } ?>
<div id="navigation">

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
<?php endif; ?>

</div><!--/#paged-list-->
<?php } else { ?>
<div id="paged-list">
<?php if (have_posts()) : ?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

<?php global $ar_ID; global $post; $ar_ID[] = $post->ID; ?>
<div class="onecolumn clearfloat">
<h3 class="title">" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h3>

<?php

colabs_post_meta();
$width = get_option ( "colabs_thumbWidth_Column" );

$height = get_option ( "colabs_thumbHeight_Column" );

if ( $width == 0 ) { $width = 80; }

if ( $height == 0 ) { $height = 80; }

colabs_pp('width='.$width.'&height='.$height.'&size=small-thumb&play=true&wrapper_class=left&link=img');

?>
<?php $status = get_option ( "colabs_excerptColumn" ); if ( $status != "no" ) { ?>

<?php the_excerpt() ?>

<?php } ?>

</div>
<?php endwhile; ?>
<div id="navigation">

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
<?php endif; ?>
</div><!--/#paged-list-->
<?php } ?>
<?php $wp_query = null; $wp_query = $temp;?>

<?php remove_filter('post_limits', 'my_post_limit'); ?>
</div><!--/#bottom-left-->

<div id="sidebar" class="right">

<?php get_sidebar(); ?>

</div><!--/#bottom-->
<?php get_footer(); ?>

[/pre]

—————————————————————————————

(von: killdbill.com)

Hier noch 10 weitere Ergebnisse dieses Threads:

Re: Arthemia Latest post show full content :: Reply by master

2. Mai. 2012 (von: master)

Okay, I think you mean the post just below the category bar?the most easy way would be to insert a quicktag called 'more' into your post at your desired "cut-off" point.It looks like this:<!--more-->and you put it into your post…

Re: Arthemia Latest post show full content :: Reply by killdbill.com

3. Mai. 2012 (von: killdbill.com)

Hey I tried the undermentioned way and it worked great was not able to apply <!--more--> tag, you rock!!!<?php the_excerpt(); ?><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story &raquo;</a>I really don't know how to…

Re: Arthemia Latest post show full content :: Reply by killdbill.com

3. Mai. 2012 (von: killdbill.com)

Hi I need your help again, my website is working fine now apart from that the old data is not showing up on my website. I mean to say previous posts are getting hidden, how can I enable paging in…

Re: Arthemia Latest post show full content :: Reply by Joern

3. Mai. 2012 (von: Joern)

in the index.php you gave me above, I can see pagination is only working if you use a plugin:<div id="navigation"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>this one: http://wordpress.org/extend/plugins/wp-pagenavi/maybe it's already there and you disabled it?in Arthemia free the code is looking…

Re: Arthemia Latest post show full content :: Reply by killdbill.com

4. Mai. 2012 (von: killdbill.com)

Thanks a lot for your help again, I got what I wanted.... its great to be a part of this website...Made my life easier... thanks again YOU ROCK!! Weiterlesen →

Re: Arthemia Latest post show full content :: Reply by killdbill.com

24. Mai. 2012 (von: killdbill.com)

Hi I need your help again, I have got an xml link from a vendor which provides feeds, now can you suggest me how do I insert that link (xml) one on my website so that the content flows automatically,…

Re: Arthemia Latest post show full content :: Reply by Joern

24. Mai. 2012 (von: Joern)

did you try first of all a sidebar wiget under Admin/Appearance/Widgets/RSSIf this shows the content of this xml-link you would be one step further.Do you want to show a 'Flow' of text only like a news ticker?Are there images in…

Re: Arthemia Latest post show full content :: Reply by killdbill.com

24. Mai. 2012 (von: killdbill.com)

It comes up with something while I am using the widget but say unknown feed!! you can check it right know. Yes there are images as well.the link is http://www.offergrid.com/allfeed/feeds/ ... f129adc016 something like this, it helps to generate all…

Re: Arthemia Latest post show full content :: Reply by Joern

25. Mai. 2012 (von: Joern)

@killdbillI think you have to talk to the feed suplier or read their guidelines.This feed is working only on a site using an authorized API key.go to http://www.offergrid.com/about-gridapi/ to read some details, they even have a live chat system asking...…

Re: Arthemia Latest post show full content :: Reply by killdbill.com

26. Mai. 2012 (von: killdbill.com)

ok just to update i hv gt an API key but i have not used it anywhere may be this is where i m missin.... see m nt very good at coding part, can u plz help how to use…

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: