• Resolved kalico

    (@kalico)


    I’m using this on a multisite and I have this on my target page in blog 30:

    [rps-include blog=23 post=5771 filter=true]

    There are two types of shortcodes on the source page, from two different plugins:

    1) “Tabby” tabs – [tabby title="Algebra"]

    2) WP Download Manager – [wpdm_category id="algebra" tags="case-study,case-studies" toolbar="0" template="568dc073bf39f" cols=1 colspad=1 colsphone=1 item_per_page="30"]

    The “Tabby” plugin is network activated, and it works fine on the target site/page – that is, it creates tabs for content as expected.

    The WPDM plugin is also network activated, but it does not have any actual content in the target site, only in the source site. It is not displaying content from the source site on the target site.

    I suspect I understand the problem, but I’d like to know if there is a way to fix it.

    WPDM provides a way to build a repository of downloadable content. I have created a lot of downloads on one site of the network, but I would like to show a list items from one WPDM category on another site in the network.

    WPDM does not support this functionality, so I hoped RPS Includes would be a workaround.

    Unfortunately, it fails gracefully (displays nothing) on the target page.

    Is there any chance at making this work?

    https://www.ads-software.com/plugins/rps-include-content/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author redpixelstudios

    (@redpixelstudios)

    It sounds like you are on the right track with the issue. It seems you would need custom functionality to make this happen since WPDM has no assets to query on the site containing the RPS Include Content shortcode.

    The wpdm_category shortcode is bound to a callback function by the same name, and within that function is a call to the function responsible for issuing the query and the HTML generation (wpdm_embed_category).

    You could clone the wpdm_embed_category function into your theme functions file with a unique name (i.e. my_wpdm_embed_category), remove the wpdm_category shortcode and add it along with a callback to your cloned function.

    From there you would need to modify the function to temporarily switch blogs, run the query and switch back.

    Of course the solution is somewhat speculative and results from a cursory view of the source code, but it indeed seems possible to achieve what you are attempting to do, though it may take quite a bit of time and testing to make certain everything works as expected.

    We hope this information helps you in your efforts.

    Thread Starter kalico

    (@kalico)

    Do you do paid work? LOL ??

    Really….I appreciate your suggestions and I’m excited at the prospect. This would be an awesome thing if I could get it working.

    I don’t personally have the resources at the moment to attempt something like this, but maybe down the road.

    Meanwhile, we do have a small budget for this project, so if you do custom work I’d be interested in getting a quote. Thanks!

    Plugin Author redpixelstudios

    (@redpixelstudios)

    Glad to look into it and offer the suggestion. We would be happy to provide an estimate for the work. Please submit your inquiry through our contact form and reference the link to this support thread to assist in defining the scope of work.

    As an alternative, you may wish to contact the developers of WPDM to see if they would be willing to add a blog-switching mechanism to the associated shortcode. It’s a good idea really and could help others, though it may not be on the roadmap for their plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WPDM shortcodes not processed on target site’ is closed to new replies.