The Wcms object

Post Reply
Matt5
Posts: 5
Joined: Tue Nov 12, 2024 12:03 pm

The Wcms object

Post by Matt5 »

I'm writing a directory/table plugin. Add one or more shortcodes to a page and get tables instead. It worked before converting it to a plugin. Now it doesn't work. The problem is that I don't understand the Wcms object and how to pull the page content. My current method is crappy and completely breaks for blog pages. I am unable to get the page content for blog pages.

Do you have any documentation on the Wcms object?
Matt5
Posts: 5
Joined: Tue Nov 12, 2024 12:03 pm

Re: The Wcms object

Post by Matt5 »

I noticed that my plugin program returns a "404" for page content when it is a blog page. So it does not decode the shortcode. However, after my program runs, the full text of the blog shows up anyway. The shortcode is there but not decoded. It appears that my program should run after the blog plugin.

Everything works fine when I modify the Sky theme. It's only a plugin problem.

At this point I'm just going to fork the Sky theme and include the directory code.
User avatar
wiz
Posts: 788
Joined: Sat Oct 30, 2010 12:23 am

Re: The Wcms object

Post by wiz »

Hi Matt, are you still having issues?

We updated our documentation to help with data setting and fetching: https://wondercms.com/docs

Let us know if we can improve it any further.
Post Reply