Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Hide post in multipost-pages (http://forum.bytesforall.com/showthread.php?t=3339)

Per Lund Sep 8, 2009 12:40 PM

[SOLVED] Hide post in multipost-pages
 
Is it possible to hide a certain post in all multipost-pages exept the frontpage?

Per Lund Sep 11, 2009 02:23 AM

Does anybody have an idea?

juggledad Sep 13, 2009 12:47 PM

you could put some PHP in the loop - something like 'if( $post->ID == 'xx') .....'

Per Lund Sep 17, 2009 01:04 PM

Sorry, but I don't understand much of php, so I need a more spesific explanation.

juggledad Sep 17, 2009 02:49 PM

Change 399 to the id of the post in question then add the following to the top of 'The LOOP' (ATO->Style & edit CENTER COLUMN)
HTML Code:

<?php ob_start();
        the_ID();
        $test_id = ob_get_contents();
ob_end_clean();
if (($test_id <>
'399')
OR (($test_id == '399') AND is_front_page() ) ) { ?>

and add the following to the bottom of 'The LOOP'
HTML Code:

<?php } ?>

Per Lund Sep 18, 2009 07:45 AM

You're the man :)

This works perfect!!!


All times are GMT -6. The time now is 04:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.