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 7 years, 1 month ago by
Steven Zahm.
-
AuthorPosts
-
01/23/2014 at 5:05 pm #278022
Ayyoub
GuestI’m trying to get the value of the “cn-cat” from the URL and use it to customize the category view according to the URL.
I use the plugin “Allow PHP in Post and Pages” but I think it’s conflicting with connections shortcode.
This is how I use:
[connections page_limit=’10’ pagination_position=’both’ enable_search=’true’ category=[php]
echo $_GET[“idcat”];
[/php]enable_category_select=’true’ enable_category_by_root_parent=true enable_bio_head=’true’]
is there a way to avoid this or to ingest this code directly on the Connections plugin?
01/23/2014 at 8:53 pm #278078Steven Zahm
Keymaster@ Ayyoub
I’m pretty certain you can not use a shortcode within the shortcode attributes like that. WordPress wouldn’t parse and run it correctly, nothing I can do about that, sorry!
You shouldn’t need to do that anyway as Connections will automatically check for the
cn-cat
query var and use it if it is set.01/24/2014 at 10:09 am #278083Ayyoub
GuestThe idea behind this is to be able to create a jump-menu for users to chose a top category then display Connections drop-down list with only the sub-categories related to prior choice.
I might be overthinking it but I couldn’t find a better way to do it.
I have too many categories/sub-categories that I can’t have them all displayed at once.Can I limit the drop-down to display only the root categories?
02/05/2014 at 3:12 pm #279274Steven Zahm
Keymaster@ Ayyoub
Apologies for the late reply! For some reason your reply was detected as spam and I was not notified …
The only option you have is to create a custom theme template page and call the internal Connections functions directly. Take a look in the
class.template-parts.php
file. There is a category method you can use that take many different options to customize the output. Far, far more than what is available thru the shortcode.Hope that helps.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.