Multisite Shortcode / jquery – Related Listings

  • Sandra
    Sandra
    Senior Member 265 points
    August 5, 2015 at 1:08 pm

    Hi,

    I am testing a multisite using V8.3

    I have currently 3 sites, all using responsive directory theme. I will be adding more hopefully using coupon, classified & micojobs etc. so I want to use Multisite.

    I have same user advertising across all three sites, currently in the author section, the “view all listings” by the author will only pull in the listings on that current site.
    Can anyone assist with code what I can put in here to bring in the user’s listings in the other sites to populate either in the author box section I have in the sidebar beside their listing, OR under their listing as a “related listing”.

    The reason I ask is:

    I have a user, they are a hotel business. Within this hotel business they have a restaurant open to the public, a gym open to membership, a beauty salon open to the public and a bar that hold live music events.

    I want them to advertise their hotel in my hotel site, their restaurant in my restaurant site and their gym, beauty salon and their live music events in my What’s On site.

    When a visitor then views their hotel listing, I want at the bottom or the side this hotel’s listings for their restaurant, beauty salon, gym and live music events to show up.

    I know they use different databases, but, when I am in each separate site I can easily add their username to each site using the “add an existing user” option and it just pulls it in, so it can surely be done? Maybe as related listings shortcode under would be easier than in the author box?

    Thanks.

  • Sandra
    Sandra
    Senior Member 265 points
    August 6, 2015 at 7:22 pm

    Can anyone assist with this pls?

  • Clive
    Clive
    Super Guru 1,818 points
    August 6, 2015 at 7:28 pm

    This would need some custom coding. You can post a request here: https://www.premiumpress.com/designwork/

    HTH 🙂

    This reply was awarded the best answer by the topic poster.
  • Sandra
    Sandra
    Senior Member 265 points
    August 6, 2015 at 10:06 pm

    Thanks Clive. Would it be a big job?

  • Christopher Lee
    Christopher Lee
    Senior Member 348 points
    August 6, 2015 at 10:27 pm

    @Sandra, try search WP plugin directory. Network latest posts is good, but you’ll need some kind of shortcode plugin to be able to manipulate the placement.

    Good luck

  • Aaron
    Aaron
    Super Guru 920 points
    August 6, 2015 at 11:38 pm

    Within this hotel business they have a restaurant open to the public, a gym open to membership, a beauty salon open to the public and a bar that hold live music events.

    Not sure a multisite is the best way to go with that sort of setup.

    In order to keep it simple you could have hotels ,Restaurants and What’s On as separate Taxonomies or fields allowing you to query between both.

    If you go the taxonomy route you could create 3 separate taxonomy templates to reflect the different types and link between them.

  • Sandra
    Sandra
    Senior Member 265 points
    August 7, 2015 at 7:25 am

    Hi Aaron,

    I’m wanting to keep them separate though. So when looking in the hotel site I want it to be only accommodation. This is an important selling point.
    Furthermore I want to add in coupons & jobs & mico job themes later on.
    But thank you for suggestion.

  • Sandra
    Sandra
    Senior Member 265 points
    August 7, 2015 at 7:27 am

    I’ll have another look Thank you Christopher.

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

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes