The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I am trying to: insert a view into a normal WordPress content post.
I expected to see: a Views button in the WPEdit WYSISYG editor.
(I get the conditional button, but am expecting to see some Views button so I just make an exsiting view show up within that post).
Maybe the quickest way is just to let me know what the shortcode is...
I just want this view to show up in the content of some post: hidden link
I have that View displaying as a widget on this post: hidden link
(it's the headlines with the thin image backgrounds)
But I need it to appear in the content, not as a widget above or below the content.
So if I know the shortcode, I probably don't even need that button to work. (Disabling all my plugins to troubleshoot is kinda hard as I have a lot of staff working).
While that shortcode worked, it actually didn't solve my very specific need.
Is there a php code to make a View show up in one of the WordPress template php pages, like in content.php or single.php?
For example, here is how I'm pulling in an individual post into a template .php page:
<?php
$post_id = 42222;
$queried_post = get_post($post_id);
$title = $queried_post->post_title;
echo $queried_post->post_content;
?>
...So I was hoping there's a similar way to pull a View into a template php page.
I want to thank you for following my need through all the twists and turns from the original question. (We started with the View button and ended up in PHP).