Free and Premium WordPress Plugins & Themes Forums WordPress Themes Villagio Display different number of accommodations in Home Page
- This topic has 3 replies, 3 voices, and was last updated 6 years, 3 months ago by J. Davis.
- AuthorPosts
- July 24, 2018 at 4:43 pm #702417Gabi Miguel LdaParticipant
Hello,
Is it possible to display for example 9 accommodations instead of 10, and if it’s possible where do I can change it?
Best regards,
KirillJuly 25, 2018 at 8:56 am #702612Stacy LindKeymasterHi Gabi,
To change the number of the displayed accommodation types, you will need to edit the shortcode on the Home Page. So instead of:
[mphb_rooms view_button=”true”]
specify the ids of the accommodation types that should be displayed like:
[mphb_rooms view_button=”true” ids=”44,42″]
The accommodation type ids can be found in the Accommodation tab > Accommodation Types > hover over an accommodation type to see its id to use in the shortcode.
You can read more about the available shortcodes and their configurations in Accommodation > Shortcodes.July 25, 2018 at 9:11 am #702621Gabi Miguel LdaParticipantHi Stacy,
Thank you for your response, but what was I looking for is posts_per_page, I simply set to 9 and it’s all working.
[mphb_rooms class="columns-3" posts_per_page="9"]
- This reply was modified 6 years, 3 months ago by Gabi Miguel Lda.
July 26, 2018 at 9:00 am #702923J. DavisKeymasterHi Gabi,
Yes it is also possible to show accommodation types with pagination by
posts_per_page=
attribute.best regards,
John - AuthorPosts
- You must be logged in to reply to this topic.