Display different number of accommodations in Home Page

Free and Premium WordPress Plugins & Themes Forums WordPress Themes Villagio Display different number of accommodations in Home Page

This topic contains 3 replies, has 3 voices, and was last updated by   J. Davis 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #702417

    Gabi Miguel Lda
    Participant

    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,
    Kirill

    #702612

    Stacy Lind
    Keymaster

    Hi 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.

    #702621

    Gabi Miguel Lda
    Participant

    Hi 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 1 year, 4 months ago by   Gabi Miguel Lda.
    #702923

    J. Davis
    Keymaster

    Hi Gabi,

    Yes it is also possible to show accommodation types with pagination by posts_per_page= attribute.

    best regards,
    John

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.