Home › Forums › Webinar Discussions › "Building Staff Pages" Webinar
- This topic has 4 replies, 2 voices, and was last updated 3 years, 4 months ago by Benjamin.
-
AuthorPosts
-
July 15, 2021 at 8:44 am #16316BGParticipant
I started building a staff pages webinar similar to what Benjamin showed us here
Can anyone see the problem with the code in my pods template? It contains shortcode, but though the individual posts look and work correctly, the archive page shows the shortcodes:
Do I have to get rid of the shortcode or is there a way to make it show correctly?
July 15, 2021 at 8:45 am #16326BenjaminKeymasterAHHH... Simple Fix. (I hope)
Just add the following code to your wp-config.php file
define( 'PODS_SHORTCODE_ALLOW_SUB_SHORTCODES', true );
And everything "should" work out okay.
A shortcode within a Pods template is technically a "nested shortcode" and it won't work by default. This is why we need to specifically tell the WordPress site that we are enabling nested shortcodes so the Pods template understands how to parse the difference between Pods Shortcodes & Magic Tags from regular WordPress shortcodes... and such.
Side note: If you are using a single shortcode to show Pods on the frontend and you don't want to enable the full nested shortcodes with the above line of code in your wp-config.php file, you can also convert your Pods shortcode to something like this:
In the first example, this would be a Pods shortcode being used on a regular WordPress page:
[pods name="book_pod" template="book_template" limit="5"]
If we want to convert this one to allow for THIS instance of the Pod display (because the book_template has nested shortcodes), we can modify that Pods shortcode to look like this:
[pods name="book_pod" template="book_template" limit="5" shortcodes="1"]
But for the most part, it will just be easier adding the full wp-config.php modification.
July 15, 2021 at 1:22 pm #16336BGParticipant@Benjamin, you are the best !!! Thank you !!! Easy fix, indeed. I had to add the wp-config.php line plus your last line. Then it worked.
(BTW, I did not mean to build a webinar but a staff page like in your webinar. 4 weeks away from a few days of vacation, obviously I do need a break!)
July 28, 2021 at 2:13 pm #16773BGParticipant@Benjamin, please allow another question concerning the same project:
The presently live TEAM page (Voce 1.9.9.7 - S-C-S) is responsive. The version which consists of the PODS items partially lost responsiveness:
Though the sidebars still move below the content area and even the texts move below the photos (instead of sitting next to them), the width of the texts are staying the same. The "bubbles" including the "bubble texts" still stay next to the photos and keep their width.
What did I miss? (Do you need to see the pages/URLs?)
July 28, 2021 at 7:21 pm #16776BenjaminKeymasterYes, I'll need to see the Pages/URLs to see if I can figure out what is going on. You can also send those directly to me if your site isn't fully live yet at benjamin@wpstudio.com. I have an idea why this is happening, but without seeing the page I can't say if the media query is drawing the right markup or not.
-
AuthorPosts
- You must be logged in to reply to this topic.