Link last inserted article in section 1 (our-rooms)

Home Forums Hotel Pro Link last inserted article in section 1 (our-rooms)

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #72776
    Paolo PeriPaolo Peri
    Participant
    • Topics: 3
    • Replies: 10
    • Total: 13
    Member since: April 17, 2017

    Hi team,
    I’m looking for your help again.
    I’m trying to link dinamically the last inserted article of a specific category in the first column of our-rooms section.
    In particular I have a category for special offers and I’d like to put the link to the article and use its inner banner as the image to show in this section area:

    [column_content type=”one_third”]
    — inner banner here
    — link to the last inserted article of category “Special offers” active on the page and on the text below
    [:en]Special offers[:it]Offerte speciali[:de]Absatzförderung[:]
    [/column_content]

    Is it possible to link dinamically the last inserted article of a specific category in such a way?

    I only have to thank you again for your previous help and for your kind attention.

    Have a nice weekend.
    Paolo.

    #72899
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31028
    • Total: 31028
    Member since: August 16, 2013

    Hi,

    Kindly show us your website URL so that we can assist further.

    Regards,
    Dave

    #73006
    Paolo PeriPaolo Peri
    Participant
    • Topics: 3
    • Replies: 10
    • Total: 13
    Member since: April 17, 2017

    Hi,
    thank you so much for standing by me.
    The site I’m composing is available at my test space http://www.2pdevelop.com/www.hotelmontanara.com/en/ waiting for the final porting.
    I would like to link the last inserted article belonging to a particular category (in my case it is “Special offers”) in the first column of our-rooms section.
    It’s really easy to link a particular article and change the picture with its inner banner, but I would like to get such a feature fully automatic: when my friend write a new special offer article, he’ll get it in that place without changing the html code.
    I tried adding:
    [area class=”hold-3box”][recentposts show=”1″][/area]
    under the picture, but it has a very limited text wich I would like to extend at 6/7 lines to increase the height of the column. In such a way I could remove the picture and leave only the recent post. On the other hand, if the most recent post belongs to a category different from “Special offer”, it will be displayed as well.
    I hope I’ve made myself clear.
    Many thanks in advance: I will be lost without your support.
    Have a nice evening,
    Paolo.

    #73558
    Paolo PeriPaolo Peri
    Participant
    • Topics: 3
    • Replies: 10
    • Total: 13
    Member since: April 17, 2017

    Hi all!
    I’m sorry to bring this matter up again, but I would like to find a solution.
    Can I use two plugins like recent posts widget and display posts shortcode to show in the first column of our-rooms section area the latest active offer?
    I supposed to use a code like the following:

    [column_content type=”one_third”]
    [display-posts posts_per_page=”1″ image_size=”thumbnail” include_excerpt=”true” category=”Special offers”]
    [:en]Special offers[:it]Offerte speciali[:de]Absatzförderung[:]
    [/column_content]

    Is there a conflict between theme shortcode links and the plugin I suggested? Can I try without problems?
    Many thanks for your foundamental support.
    Have a nice day,
    Paolo.

    #73704
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31028
    • Total: 31028
    Member since: August 16, 2013

    Hi,

    Yes, you can use 2 plugins.

    Regards,
    Dave

    #73870
    Paolo PeriPaolo Peri
    Participant
    • Topics: 3
    • Replies: 10
    • Total: 13
    Member since: April 17, 2017

    Hi Dave,
    I would like to thank very much for your cooperation. I have completed my work.
    Have a good day at work.
    Paolo.

    #73927
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31028
    • Total: 31028
    Member since: August 16, 2013

    🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.