jezthomp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: If post/page id show….That wrong, or am i just missing something….?
Forum: Fixing WordPress
In reply to: If post/page id show….<?php if(is_page(15)){ contact page } else { rest of pages } ?>Also trying to do multiple ones but had no look either… 🙁
<?php if(is_page(15)){ contact page elseif(is_page(30)){ book page } else { rest of pages } ?>Forum: Fixing WordPress
In reply to: If post/page id show….Thank you but that doesn’t work 🙁
Get a syntax error.
Forum: Fixing WordPress
In reply to: If post/page id show….Any help please?
🙂
Forum: Fixing WordPress
In reply to: If post/page id show….Well i was thinking whenever really….
Or can it only be placed inside or maybe outside the loop?
Forum: Fixing WordPress
In reply to: If post/page id show….Oh brilliant thanks..:)
How would i go about adding some together?
<?php is_page(42); show...... is_post(10); show.... everything else show.... ?>That possible?
🙂
Forum: Fixing WordPress
In reply to: Image Link URL Default, None?Anyone know of any hard hacks to make it show nothing?
Forum: Fixing WordPress
In reply to: Image Link URL Default, None?Its not working for me.
I still have to select none every time i add a new image…
Regardless of whether i am adding a new post or editing an existing one.
🙁
Forum: Fixing WordPress
In reply to: Image Link URL Default, None?Can this not be edited at all?
Forum: Fixing WordPress
In reply to: If/Else If query by Category ID?Sorry, so how would that look, i’m not 100% with how things fit together, i’ve just been experimenting from the codex really…?
Forum: Plugins
In reply to: [plugin: wordpress-file-monitor] error appears at top of page…?Nobody got any ideas?
🙁
Forum: Fixing WordPress
In reply to: Posts: Excluding/Including Current Month?Thanks vt, i’ll try them out.
Very much appreciated 🙂
Forum: Fixing WordPress
In reply to: Posts: Excluding/Including Current Month?Thanks for that vt.
So for example i wanted 2 pages, one showing the posts from the current month then another page showing all other months it would work like this…
Also only from cat id 1…
Current months posts…
<?php if (have_posts()) : ?> <?php query_posts('cat=1');?> <?php $monthnum = date('n') query_posts("monthnum=$monthnum"); ?> <?php while (have_posts()) : the_post(); ?> <!--News content current month--> <?php the_content() ?> <?php endwhile; ?>Surely the following is only listing an archive list, any chance it could control the posts?
All other months posts….
<?php if (have_posts()) : ?> <?php query_posts('cat=1');?> <?php $archives = wp_get_archives('echo=0'); $arcarray = explode('<li>',$archives); $junk = array_shift($arcarray); // First entry is empty $junk = array_shift($arcarray); // Current month is next $result = '<li>' . implode('<li>',$arcarray); echo $result; ?> <?php while (have_posts()) : the_post(); ?> <?php the_content() ?> <?php endwhile; ?>Thanks again 🙂
Forum: Fixing WordPress
In reply to: Best way to custom display posts?Thankyou Michael
How do i determine what order they go in though, put a number in a custom write panel, or custom field…something like that?
Forum: Fixing WordPress
In reply to: Role Restriction Posts/Pages?Thanks for that. 🙂
I had a look through and its so complicated, i dont have a club how to set anything up 🙁
Anything easier or tutorials for that one?