Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Craig
Since you are using the cMap template, open this file:
../wp-content/plugins/connections-cmap/card.phpThe difference from the code in my last reply is that I am using the “block” equivalents which render the HTML. Son in the template you’ll find this
$entry->getAddressesBlock();Since you want the raw data, you would use
$addresses = $entry->getAddresses();instead.Hope that makes sense.
Steven Zahm
Keymaster@ Craig
Oh, well, in this case you do not want to use the shortcode at all. Something like this:
$results = Connections_Directory()->retrieve->entries( array( 'organization' => 'Abby Kelley Foster Charter Public (District): Abby Kelley Foster Charter Public School' ) ); foreach ( $results as $data ) { /** @var cnEntry $entry */ $entry = new cnEntry( $data ); /** @var array $addresses */ $addresses = $entry->getAddresses(); /** @var array $phone_numbers */ $phone_numbers = $entry->getPhoneNumbers(); }Hope this helps!
Steven Zahm
Keymaster@ Eric
I give fixed rate quotes based on scope of work. If you can supply a detailed explanation of necessary features as they directly related to Connections I should be able to give you a quote. Please feel free to contact me using the Contact link at the very bottom of this page with the details.
Steven Zahm
Keymaster@ Reinhard
Create a temp account using this plugin:
https://wordpress.org/plugins/temporary-login-without-password/
Reply back, as a private reply, with the temp login link.
Steven Zahm
KeymasterStill not exactly sure what you are looking for…
Here’s a direct link to a specific school:
Here’s a link which filters by organization name:
Since the schools are unique, the organization filter will return a single result.
And by shortcode:
[connections organization="Abby Kelley Foster Charter Public (District): Abby Kelley Foster Charter Public School"]Do any of these help?
Steven Zahm
Keymaster@ Craig
Not sure I understand the question… an organization could be one or many as they are not unique. That really depends on what is in your directory. For example, you could have 11 McDonalds in your directory as organizations with 101 Individual who have McDonalds in their organization field.
To get a specific entry, you want to get it by its
id. To do this, you can use the id shortcode option.Not sure this helps, but I hope it does.
Steven Zahm
Keymaster@ Reinhard
I suspect the cause is something other than today’s update to Connections since the changes were limited nearly exclusively to the new WP Editor block for Connections. Also, the screenshot shows the Form addon which would have been unaffected to any changes in the core Connections plugin.
You’ll need to share a link to the page with the issue with me so I can take a closer look to determine exactly what the issue is. But, as a guess, I am thinking another plugin or he theme is breaking the styling of that element.
If you can not share a link with me, I suggest trying the conflict tests:
Steven Zahm
Keymaster@ David
Oh, ok, now I am understanding better. You were using the order_by shortcode option in the Text Widget set to date_added. Is that correct?
Steven Zahm
Keymaster@ David
Which Connections Widget were you using before you switched to using the Text Widget / Shortcode?
I think I have a relatively easy change I can make to Custom Entry Order, but I need to know the context in which you were using the original widget so make sure I am looking into this correctly.
Steven Zahm
Keymaster@ David
So, I’m looking into this… which widget are you using?
-
AuthorPosts
