In another part of the site I have the need to use some of the information in “your” database. For instance, I want to display just the school name and phone number. I would like to be able to retrieve just that information, again only having the school name.
Right now, I made a shortcode that includes:
$data = do_shortcode([connections organization='". $org_to_show . "']);
$data contains all the information you display about the organization and all the header and footer stuff for rendering the page.
If I want the phone number I search $data for the first part of this:
< span class="phone-name">Phone< /span>< span class="cn-separator">:< /span> < a class="value" href="tel:508-854-8400" value="5088548400">508-854-8400< /a>
and can then extract just the number. I can do this for the address, etc. Then my shortcode can put out just the info I need in the format I need without all the overhead of the header, footer, etc.
So I am looking for a way to get all the strings in the database for a particular organization in a simpler way.
Live example: I am considering having people search by both your radius search and by a full map with markers. If you look at this page and click on the Haller Academy marker (by the water, over Boston), you will see a popup. It takes a while to populate with “your” data because I am dynamically creating a page with your connections shortcode and then bringing that in as an iframe. It is cool, but slow. I would rather just write out the html myself.
https://schoolorg.directory/map-testing/
Yes, I know I am being a pain in the butt, and I apologize. You have a great system and I may be pushing it a bit!
THANK YOU
-
This reply was modified 7 years, 6 months ago by
CRAIG HALLER.
-
This reply was modified 7 years, 6 months ago by
CRAIG HALLER.
-
This reply was modified 7 years, 6 months ago by
CRAIG HALLER.
-
This reply was modified 7 years, 6 months ago by
CRAIG HALLER.
-
This reply was modified 7 years, 6 months ago by
CRAIG HALLER.
-
This reply was modified 7 years, 6 months ago by
CRAIG HALLER.
