Forum Replies Created
-
AuthorPosts
-
09/30/2016 at 11:30 am in reply to: Member Directory/Individual Member page ID's are the same #393823
Steven Zahm
Keymaster@ Katelyn
re: How can I turn the category part into a link to the individual member page? Each category only has (and will always only have) 1 person attached to it.
Not tested but something like this:
$terms = $entry->getCategory(); //Get all categories attached to entry. $term = $terms[0]; // Pop off the first category assigned to entry. $url = $entry->getPermalink(); Get the permalink to the entry. //Display the link. echo '<a href="' . esc_url( $url ) . '">' . esc_html( $term->name ) . '</a>'re: To go along with this, when I click a category in the sidebar on the home page (http://184.154.247.155/~busin814), it takes you to a category page, where you then have to click again to see the person’s individual page. How can I make it go directly to the individual member’s page when you click the category?
That’s not possible. You would have to write a custom widget to display the category names but link to the entry attached to the category. Since you have a limited number of categories it is likely far easier and quicker to create a new Menu on the WordPress Menus admin page using custom links. You would add a Custom Link to the menu for each category/entry link. After you do that, you can use the WordPress Custom Menu widget to place you newly created custom menu in the sidebar.
re: Another thing I can’t figure out: how can I make changes to files in: connections -> includes -> template? I made a change to class.template-parts.php, but of course these changes will be overwritten when the plugin is updated. I tried duplicating the folder structure in my child theme and that didn’t work.
Now, you can not do that… that file is a core file and can not be overridden. What changes are you making?
You can override the template files as mention in a previous reply. I suggest doing your changes here instead.
re: Lastly, how can I get both the logo and other image to show up at the same time?
You can use the
$entry->getImage()function. The code is documented in theclass.entry-output.phpin../connections/includes/entry/You would call it once for the image and another for the logo like this:$entry->getImage(); // Displays photo.$entry->getImage( array( 'image' => 'logo') ); // Displays logo.Hope that helps!
-
This reply was modified 9 years, 11 months ago by
Steven Zahm. Reason: Fix code block
Steven Zahm
Keymaster@ Estelle
re: I’m afraid it doesn’t. When I’m in connections, templates
It has to work because that is how the word “Biography” is set initially. If it didn’t it could not be set and then not displayed.
My suggestions…
- Edit the page again, switch the post editor to the Text tab and make sure there is no HTML tags in and/or around the Connections shortcode and the template shortcode options within the shortcode. If you copy paste shortcode or options from a website into the Visual editor you will also paste the underlying HTML that is used to display it on a web page. This is not a bug or limitation with Connections. This is how the WordPress posted editor is designed to function.
- If you are using any sort of page caching either server side or a WordPress plugin make sure you clear the cache otherwise you will not see the change.
- I see you are using the Divi theme, if I remember correctly they have there own builtin cache too, make sure you clear it.
re: I can see that the core templates allow for shortcode override… but I don’t have that option with Excerpt Plus 2.0.
Yes, that option is available and displayed for all templates on the Connections : Templates admin page. This is a core builtin feature that works with all templates regardless of being the free core template or the premium templates. It is really, really odd that you can see this for the core templates but not Excerpt Plus. The only thing I can think of is that another plugin is somehow hiding it by not limiting its own CSS/CSS files to its own admin pages.
Any way the template shortcode override is
template="excerpt-plus", but you do not need it. The template is displaying fine on your site.re: How/where do I modify the template?
Here are a couple links to docs which cover this:
Hope that helps!
09/30/2016 at 9:53 am in reply to: Template circle – Adapting the frontend by using shortcodes #393810Steven Zahm
Keymaster@ Marion
Good to hear you have resolved it. Just as an fyi, the only reason you had to activate the template under the other template types was because of of #3 in my previous reply. With that option disabled (its default) you only need to activate it under the “All” template type.
Hope that helps!
Steven Zahm
Keymaster@ Frank
You would use this filter mentioned in this forum topic on asking the same question by another user.
I did answer your question how to use the filter in this reply. Perhaps you missed my reply.
Hope that helps!
09/29/2016 at 1:09 pm in reply to: Template circle – Adapting the frontend by using shortcodes #393657Steven Zahm
Keymaster@ Marion
Here’s a few suggestions to follow in order…
- Please check and ensure the Circle template is installed and activated on the Plugins admin page.
- Please check ensure the Circle template has been activated for use on the Connections : Templates admin page.
- If you have enabled the Single Entry Template option on the Connections : Settings admin page under the Display tab in the Single Entry section, please disable it.
I hope this helps, let me know.
Steven Zahm
Keymaster@ Jonathan
Assuming you are using the Link extension to link user accounts to directory entries you can use the Login Widget. It has an option to display the logged in users admin profile page.
Not sure if that answers your question or not but I hope you find it useful.
Steven Zahm
Keymaster@ Marian
I took a look at the plugin you linked to as an example. Seems like that would actually require more work than adding a normal link. Since you need to define a list of keywords and their links.
Giving this more thought it would be possible to query a list of names from the directory and then search the post content for those names and then add links doing this on a post save event. As long as the directory has a max of a couple hundred entries that should work just fine scaling beyond that would require some form of background processing of a post. That too is doable but much more complicated to develop. I’ve added this to my list of ideas for extensions.
Steven Zahm
Keymaster@ Estelle
You would add
str_bio_head="Change Me"to your existing shortcode, not add my example to your page. Hope that make sense.Steven Zahm
Keymaster@ Stephen
When editing the address the lat/long is retained because many users use a custom lat/lng. They do this because the Google Maps Geocoding API is not always accurate and they need to be able to “lock” a specific lat/lng in order to properly place the map pin. So, having these fields auto reset and re-geocode is not possible without breaking the feature for those who need it to function the way it currently functions. I do see you point too, not sure how it could be remediated so it could function to meet you needs to. If you have any ideas, I am open to suggestions.
09/28/2016 at 6:00 pm in reply to: Paid for license but it wont show up in connections and then settings. #393550Steven Zahm
Keymaster@ Markie
re: It wont show up in Connections – Settings, between the SEO and the Advanced tabs.
That is the where the Licenses tab will be displayed. It will only display after the extension is installed and activated.
Here is the link to the installation directions.
After you have installed and activated it, then you will be able to activate the support license key as outlined here in the installation instructions.
The admin menu item will display on the admin menu sidebar for Connections. It will be between the “Categories” and “Templates” admin menu items.
It will be beneficial to read the CSV File Setup Requirements and the Tips sections. They will help ensure you have a successful import.
Lastly, I recommend reading these two common FAQ/s:
I hope this helps, let me know.
ps. I do see you activated the license on a site. I’m guessing you did this manually on your purchase history page because the URL is no correct. I will manually deactivate it so you can activate it properly on your site in the admin.
-
This reply was modified 9 years, 11 months ago by
-
AuthorPosts
