Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by
Steven Zahm.
-
AuthorPosts
-
03/27/2013 at 6:26 am #255276
Cees van Dongen
GuestHello,
I am investigating the deployment of the Connections plugin for one of our initiatives.
I was trying to make use of the shortcode override of attribute ‘template’. For some reason it is not picking up the overrided value and only showing the template what was set as a default.
Example: default template is ‘profile’
Shortcode definition: [connections category=’2′ template=’card’]
Is there something I have missed in the settings?
Thanks for your support
Cees
03/27/2013 at 9:33 am #255281Steven Zahm
Keymaster@ Cees van Dongen
I know the setting works because I use it extensively on this and on my dev site, so I am having a hard time thinking of a reason it wouldn’t work for you.
One thing to try, re-type the shortcode in the page editor, but make sure you switch to the Text tab first.
If that doesn’t solve it, can I get a temp admin account so I can take a closer look?
03/27/2013 at 10:38 am #255302Cees van Dongen
GuestHi Steven,
I did some debugging in inc.shortcodes.php by adding $out .= print_r( $template->getSlug(), true); at line 306. This way I could see that the defined template was not extracted/recognized from the shortcode.
I did some changing to the order of the defined attributes, and now it works.
[connections template='card' category='2']
Will this help you a little in this puzzle.
rgrds,
Cees
03/27/2013 at 10:52 am #255305Steven Zahm
Keymaster@ Cees van Dongen
Good to hear you figured it out.
WordPress actually handles the parsing of the shortcode, Connections doesn’t do that, it just receives the values … more or less … so the order will not matter.
If you pasted in the shortcode from a webpage in the Visual editor but retyped it using the Text editor, that can and does make a would of difference. When pasting from a webpage into the Visual editor, the HTML from the webpage is also pasted. This messes with WordPress being able to correctly parse the shortcode and its options.
When the shortcode isn’t working, the solution is nearly always retyping it using the Text editor.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.