Including template with include instead of auto loading in post loop widget.
I submitted a pull request to siteorigin-panels, can you let me know if those changes can be merged into the master.
If not, I will have to figure out other ways to achieve that.
Thanks.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi Satish
Good to hear from you, I hope things are going well on your side. Feel free to email me in future on [email protected] so I can reply a bit quicker.
On an unrelated matter, in the past, we discussed including JSON layouts. You can now see that in action in Corp and it’s quite quick:
Assign your own layouts folder:
https://github.com/siteorigin/siteorigin-corp/blob/develop/inc/siteorigin-panels.php#L11-L18
Include the layout and a matching file name image for the thumbnail:
https://github.com/siteorigin/siteorigin-corp/tree/develop/inc/layouts
You might also find the following useful:
Checks to see if we’re rendering the Post Loop widget:
https://github.com/siteorigin/siteorigin-corp/blob/develop/inc/template-tags.php#L630-L662
Excluding template parts from the Post Loop widget:
https://github.com/siteorigin/siteorigin-corp/blob/develop/inc/siteorigin-panels.php#L20-L46
Let me chat to the guys about your PR and get back to you ASAP. Apologies for the delay, please feel free to drop me an email next time.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.