Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Hide post in multipost-pages


  #1  
Old Sep 8, 2009, 12:40 PM
Per Lund's Avatar
Per Lund
 
65 posts · Aug 2009
Is it possible to hide a certain post in all multipost-pages exept the frontpage?
  #2  
Old Sep 11, 2009, 02:23 AM
Per Lund's Avatar
Per Lund
 
65 posts · Aug 2009
Does anybody have an idea?
  #3  
Old Sep 13, 2009, 12:47 PM
juggledad's Avatar
juggledad
 
23,630 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you could put some PHP in the loop - something like 'if( $post->ID == 'xx') .....'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Sep 17, 2009, 01:04 PM
Per Lund's Avatar
Per Lund
 
65 posts · Aug 2009
Sorry, but I don't understand much of php, so I need a more spesific explanation.
  #5  
Old Sep 17, 2009, 02:49 PM
juggledad's Avatar
juggledad
 
23,630 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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 } ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Sep 17, 2009 at 02:52 PM.
  #6  
Old Sep 18, 2009, 07:45 AM
Per Lund's Avatar
Per Lund
 
65 posts · Aug 2009
You're the man

This works perfect!!!

Last edited by Per Lund; Sep 18, 2009 at 10:53 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't hide sidebars on individual pages. Works for categories. phpadam Sidebars & Widgets 8 Sep 25, 2009 02:09 PM
how do you hide the sidebar on "Not Found" pages/posts w/ incorrect ID in the URL? jonasgrumby Sidebars & Widgets 0 Aug 26, 2009 12:13 PM
Suggestion: Support for multipost pages header and footer pedja Header configuration & styling 1 Jul 13, 2009 08:29 PM
hide sticky post footer dyrathror Post-Kicker, -Byline & -Footer 1 Apr 26, 2009 01:08 AM
Customizing posts displayed in multipost home page by category Darren Sproat Atahualpa 3 Wordpress theme 0 Mar 20, 2009 01:02 PM


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


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