go41

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by motorness

von Joern am 28. Apr. 2012 | Keine Kommentare

"If you select ‘First Image’ for thumbnail assignment, the Latest Post section will not display any thumbnail. It will display the whole content of your post along with any images (and anything) in it

If you select ‘Post Custom Field’ or ‘Featured Image’ for thumbnail assignment, there will be an auto-generated thumbnail displayed at top-left along with the whole content. Please notice that anything (including all the images, video embed, etc) in the post will also be displayed

If you want to have ‘Post Custom Field’ or ‘Featured Image’ for thumbnail assignment but do not want an auto-generated thumbnail displayed at the Latest Post section (and single post view because those 2 sections are both displaying identical content), you need to select the ‘Hide Top-Left Thumbnail’ option. This setting is available at Single Post Page settings"
If you want to disable the latest post from showing it’s the section referred to bottom left – the easiest way is to open your index.php select all and copy it to a text pad ect for safe keeping then select all and paste this. You can see the code removed between
<div id="bottom-left">
and
<?php $column = get_settings ( "cp_status_Column" );

if ( $column != "one" ) { ?>
<?php get_header(); ?>
<?php

//Get value from Admin Panel

$cp_categories = get_categories(‚hide_empty=0‘);
$status1 = get_settings( "cp_preventHeadline" );
if ( $status1 != "No" ) {
$ar_headline = get_settings( "ar_headline" );

$ar_featured = get_settings( "ar_featured" );
}
?>
<div id="bottom" class="clearfloat">
<div id="bottom-left">
<?php $column = get_settings ( "cp_status_Column" );

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

<?php add_filter(‚post_limits‘, ‚my_post_limit‘); ?>
<?php

global $myOffset;

$myOffset = 1;

$temp = $wp_query;

$wp_query= null;

$wp_query = new WP_Query();

$wp_query->query(array(

‚offset‘ => $myOffset,

‚category__not_in‘ => array($ar_headline,$ar_featured),

‚paged‘ => $paged,

)); ?>
<?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>

<div class="meta"><?php the_time(get_option(‚date_format‘)); ?> – <?php the_time(); ?> | <?php comments_popup_link(__(‚No Comment‘,’arthemia‘), __(‚One Comment‘,’arthemia‘), __(‚% Comments‘,’arthemia‘));?><?php if(function_exists(‚the_views‘)) { ?> | <?php the_views(); } ?></div>
<?php $width = get_settings ( "cp_thumbWidth_Column" );

$height = get_settings ( "cp_thumbHeight_Column" );

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

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

?>
<?php

$status = get_settings ( "cp_thumbAuto" );

$values = get_post_meta($post->ID, "Image", $single = true);

$id =$post->ID;

$title = $postid->post_title;

$the_content =$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID = $id");

$pattern = ‚!<img.*?src="(.*?)"!‘;

preg_match_all($pattern, $the_content, $matches);

$image_src = $matches[‚1‘][0];
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
?>

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

<?php

thumbss($width,$height,$image_src,$url,$status,$values);

?>

<?php $status = get_settings ( "cp_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>
<?php } else { ?>
<div id="paged-list">

<?php add_filter(‚post_limits‘, ‚my_post_limit‘); ?>
<?php

global $myOffset;

$myOffset = 1;

$temp = $wp_query;

$wp_query= null;

$wp_query = new WP_Query();

$wp_query->query(array(

‚offset‘ => $myOffset,

‚category__not_in‘ => array($ar_headline,$ar_featured),

‚paged‘ => $paged,

)); ?>
<?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>

<div class="meta"><?php the_time(get_option(‚date_format‘)); ?> – <?php the_time(); ?> | <?php comments_popup_link(__(‚No Comment‘,’arthemia‘), __(‚One Comment‘,’arthemia‘), __(‚% Comments‘,’arthemia‘));?><?php if(function_exists(‚the_views‘)) { ?> | <?php the_views(); } ?></div>
<?php $width = get_settings ( "cp_thumbWidth_Column" );

$height = get_settings ( "cp_thumbHeight_Column" );

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

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

?>
<?php $status = get_settings ( "cp_thumbAuto" );

$values = get_post_meta($post->ID, "Image", $single = true);

$id =$post->ID;

$title = $postid->post_title;

$the_content =$wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE ID = $id");

$pattern = ‚!<img.*?src="(.*?)"!‘;

preg_match_all($pattern, $the_content, $matches);

$image_src = $matches[‚1‘][0];
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
?>

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

<?php

thumbss($width,$height,$image_src,$url,$status,$values);

?>

<?php $status = get_settings ( "cp_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>
<?php } ?>
<?php $wp_query = null; $wp_query = $temp;?>

<?php remove_filter(‚post_limits‘, ‚my_post_limit‘); ?>
</div>

<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>

(von: motorness)

Hier noch 17 weitere Ergebnisse dieses Threads:

Removing the ‚Latest Post‘ in Arthemia Premium

27. Apr. 2012 (von: tarerohit)

Hii Joern..I recently started my website www.sirf100.com with arthemia theme and was trying to modify the same.Firstly I would like to appreciate that your forum has the best content to help me with my modification of the theme. Still I…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by motorness

28. Apr. 2012 (von: motorness)

I think this is the look you were wanting http://www.theclubhouse.com.my/ Weiterlesen →

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by tarerohit

28. Apr. 2012 (von: tarerohit)

Thanks a lot Motorness..You got me right. I want the same look the theclubhouse.com.my. but a little colorful actually.But I have a small problem. My index.php reads<?php/** * this file has intentionally been left blank * to prevent directory browsi...…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by motorness

30. Apr. 2012 (von: motorness)

Sorry I forget what the file name is as I went back to version 2 for arthemia but if you look through your editor on the control panel there should be another .php file with the same code in it…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by tarerohit

11. Mai. 2012 (von: tarerohit)

Hey Thanks Motorness.. it worked..I found a widget to convert my thumbnails.Here I am having another problem with my single posts. When any post is opened, all the settings are distored and the page looks fishy. Please look at it.Here…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by Joern

11. Mai. 2012 (von: Joern)

I do not have the theme files, but I found the problem.It's all about one </div> entry to much on your single page view.I show you just the part which creates this problem.On your frontpage you show the header including…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by tarerohit

23. Mai. 2012 (von: tarerohit)

Hey Joern..Thanks for all the stuff. But actually I dont understand which line to paste where. I tried a few permutations but in vein..Here I am appending the said code from my header.php. Please tell me which line to paste…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by tarerohit

23. Mai. 2012 (von: tarerohit)

Joerm One more thing please..I want all my thumb excerpts on my home page to be of same size..you know its looking a bit weird with images of different sizes. I am using "Thumbnail For Excerpts" plugin. Please help on…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by Joern

23. Mai. 2012 (von: Joern)

Hi, the upper problem: I would say the last (second one) </div><!--/#top--> in the code you give me is too much, because this div has no start below '} else {'so delete it and check frontpage and singles in your…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by tarerohit

25. Mai. 2012 (von: tarerohit)

Hey Joern..Thanks a lot for your help on the single post issue..It worked..U r a life savior man.. Thank you very much..And regarding the Thumbnail excerpt issue, I have already tried with Thumbnail Regenerator. But it is not working. I…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by Joern

25. Mai. 2012 (von: Joern)

until now I didn't realize that you actually 'hotlink' images from other sites ..no wonder any thumbnail stuff (timthumb as well as WordPress post-thumbnails) is not working for you.So loading your frontpage I access not only your site, but all…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by tarerohit

25. Mai. 2012 (von: tarerohit)

Okk Joern. Now on I will upload the images to my posts rather than 'hotlink' them. Thanks for the crucial piece of advice.Can I still change all the uploaded images from the posts one by one editing them. What do…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by Joern

25. Mai. 2012 (von: Joern)

be sure to set the thumbnail size in media settings, because Wordpress will generate automatically different sizes of all images you add from computer if you have post-thumbs enabled.I see you started already, but your frontpage displays the full size…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by tarerohit

11. Jun. 2012 (von: tarerohit)

Hey Joerm..ple help..my website is not opening anymore..dont know what happened..I was away a few days and when I came back it didnot open. It gives the following error:ForbiddenYou don't have permission to access /index.php on this server.Additionally... Weiterlesen →

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by master

11. Jun. 2012 (von: master)

If you can log in, I would try to switch to default theme. If this is working, the problem is in themes folder.You also could disable all plugins to test.Else you have to check via ftp what's going on in…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by tarerohit

13. Jun. 2012 (von: tarerohit)

Hey..I tried by switching to twenty ten theme and also disabled all the plugins. But it did not got up.It is still showing the same error of Forbidden 403.Regarding the other thing of testing through ftp. Can u help me…

Re: Removing the ‚Latest Post‘ in Arthemia Premium :: Reply by master

13. Jun. 2012 (von: master)

If you trust me you might email your ftp login to me.server (or IP9user (login) namePWI could have a looktoo bad your site still offline ..____________________you find me on Google+, Twitter and Facebook Weiterlesen →

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: