surfsup74
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Get a list of all the post associated with an attachmentThanks Esmi,
Is there a way of showing multiple posts (if an attachment is used in more than one post)?
Forum: Fixing WordPress
In reply to: if 'featured' post exists display it – if not display latest.Perfect. Thanks Alchymyth.
Forum: Fixing WordPress
In reply to: One installation of WP on more than one domainThanks. It seems I’ve some reading to do. Thanks for pointing me in the right direction.
Forum: Fixing WordPress
In reply to: One installation of WP on more than one domainThe client would like to manage the content of both site via one wp backend. Both sites using the same template files (just have different user content added).
The client would also like both sites to use their own domains eg. hotel1.com & hotel2.com. It seems that this last requirement is the part that is not so straightforward to achieve…
Forum: Fixing WordPress
In reply to: One installation of WP on more than one domainWouldn’t that create a structure like;
hotels.com/hotel1/rooms/room1
hotels.com/hotel2/rooms/room1Ideally I want each hotel to have it’s own domain so the structure is thus;
hotel1.com/rooms/room1
hotel2.com/rooms/room1Could this be achieved with your suggestion combined with some sort of url rewrite perhaps?
Forum: Fixing WordPress
In reply to: One installation of WP on more than one domainYes, – that’s right.
Forum: Fixing WordPress
In reply to: One installation of WP on more than one domainCan both sites be powered from the same template files?
Forum: Hacks
In reply to: Help displaying different number of posts_per_page on page 1I have amended Esmi’s code slightly (see pastebin link below) and now have the latest post given the ‘first entry’ class and every other post ‘other-entries’ class (as intended).
The only thing to now resolve is the missing post?! When on the first page of posts I see five posts (say posts number 1-5 – which is correct) however page 2 starts with post number 7 (so it seems to be skipping post number 6).
Any ideas why please…
Forum: Hacks
In reply to: Help displaying different number of posts_per_page on page 1Thanks for that Esmi! Its not quite right though – sorry – I should have explained more clearly. I wanted only the very latest post to be give the class ‘first entry’ then every other post should be class of ‘other-entries’. Using your code all the posts in the first page are given the class ‘first entry’ and then the post on subsequent pages are given the style ‘other-entires’, which is not quite right.
Also – the loop is missing out a post. I currently see the 5 latest posts on page 1 (post 1 – 5) and then on page 2 I see posts 7 – 12. This is missing out post 6 (?).
Thanks again…
Forum: Hacks
In reply to: Help displaying different number of posts_per_page on page 1Ah. Thanks. The post per page now works exactly as I wanted – however, every post is now being given the ‘first entry’ class.
Forum: Hacks
In reply to: Help displaying different number of posts_per_page on page 1Thanks –
I copied your code but got an error message:Parse error: syntax error, unexpected T_VARIABLE in D:\xampp\htdocs\path_to_file\index.php on line 17
Any ideas why please?
Forum: Hacks
In reply to: Help displaying different number of posts_per_page on page 1Sorry my pastebin url didn’t work in the last post! Try this…
https://pastebin.com/zWZYWF0RForum: Plugins
In reply to: Stop every image I add to my post being included in the SlideshowThankyou Dalton,
This bit yes…
[portfolio_slideshow exclude=”1,2,3,4″]However, I have the slideshow tag in the template likeso:
<?php echo do_shortcode(‘[portfolio_slideshow]’);?>
and not in the write post box so does this mean there’s no way to achieve what I want (via wordpress admin).Thanks
Surfsup74
Forum: Fixing WordPress
In reply to: posts_per_page is giving unreliable resultsThanks again. What could I change the $selected_values to? I found this https://www.ads-software.com/support/topic/plugin-simple-fields-fields-not-being-called-after-custom-loop-query?replies=3 on the forum and thought it might be useful but i still get either 1 or 2 results not always 2! Thanks
Forum: Fixing WordPress
In reply to: posts_per_page is giving unreliable resultsHi.
I did as you suggested (changed line 1 and removed line 4). I have pasted the complete html into pastebin if you have a moment to look over it – https://pastebin.com/nhBYiU8U. The loop that’s not working quite right starts line 44.
Thanks
Dan