wesmed
Forum Replies Created
-
Thank you for the quick response! I’m not sure how to either rollback to a previous version or how I would install a beta version. Would either of these options delete any settings or user data?
Thank you for your response. I guess my inquiry was missing a few details. I’m aware of how to edit the field label in the UM form builder, but what I’m trying to do is modify the field label text on the frontend profiles.
For a random, simple example, say I have a question in one of my profiles that asks, “What is your favorite color?”- I would like to have the field label say “Favorite color” on the user’s profile. My reason for trying to do this is because several of my profile questions require a longer/wordier label in order to clearly ask the question. But the full question labels are making my user profile layouts jumbled and messy, and furthermore, the questions include pronouns like “you” and “your”, which reads oddly for the corresponding users. Does this make sense? Thanks in advance!
With all of your help and guidance I was able to successfully modify the labels of the directory filters. I really appreciate your patience/persistence with helping me resolve this!
Sorry about that. I reached out to UM support and was able to resolve the issue.
I see that UM has resolved the template override paths with version 2.6.4; however, I am still unable to get the modified members-grid.php template to reflect the profile tagline labels with the code provided most recently on this thread. Does the newest UM version require a different approach from the what’s been discussed above? Thank you!!
Sorry, I can’t get the code block to format correctly. This may make more sense:
line99
user['<strong><?php</strong> echo $key; <strong>?></strong>']
<?php echo ‘ LO_acre=’ . $key; ?>line100 <?php if( $key == ‘LO_acre’ ) echo ‘Acreage: ‘; ?>
line101
user['<strong><?php</strong> echo $key; <strong>?></strong>']
Like this?
<# if ( typeof user['<?php echo $key; ?>'] !== 'undefined' ) { #> <div class="um-member-tagline um-member-tagline-<?php echo esc_attr( $key ); ?>" data-key="<?php echo esc_attr( $key ); ?>">
user['<?php echo $key; ?>']</code>
<?php echo ' LO_acre=' . $key; ?> <?php if( $key == 'LO_acre' ) echo 'Acreage: '; ?>user['<?php echo $key; ?>']
</div> <# } #>Well this makes more sense (and I feel a lot less crazy). Thanks for pointing this out. I moved the members-grid.php file to the following path:
wp-content/themes/{active_theme}/ultimate-member/
, but it still doesn’t reflect any changes to the tagline labels.I tried that originally but that doesn’t add the label
I’ve been trying a different variations to exhaust all my options, but no matter what changes I make, the changes are reflected anywhere on my front end. The members-grid.php template appears in the Override Template tab in my UM Settings.
I tried renaming the template file (members-grid-labels.php) to see if UM wasn’t recognizing the new template. Changing the name just made UM unable to recognize the new template and it disappeared from the Override Template tab in Settings.
I also checked for any PHP errors, but none were associated with this particular issue. Below is my current modification. Are there other lines that I need to edit besides 99?
<?php if( $LS_property_type == 'What type(s) of agricultural land are you looking for? Check all that apply' ) echo 'Desired Land Type: '; ?> <code>user['<?php echo $key; ?>']</code>
Thank you for clarifying that. I inserted the meta_key for the corresponding field, but it never generated a label for the tagline. I also tried using other taglines and meta_keys, double checked all capitalization and punctuation – but still no labels. Any thoughts?
I appreciate the additional context. I think I follow. I added the following to line 99 in the members-grid.php file but it’s still not reflecting anything on the front end.
<?php if( $key == 'What type(s) of agricultural land are you looking for? Check all that apply' ) echo 'Desired Land Type: '; ?>
<code>user['<?php echo $key; ?>']</code>
- This reply was modified 1 year, 9 months ago by wesmed.
Not sure why my code above won’t display correctly. Line 99 in my members-grid.php file reads
user['<?php echo $key; ?>']
but the code above is generating <code> in place of the {{{ – which I think answers my second question above.Also, does the example you provided above able to be used as a snippet, instead of editing the template file?
Thanks so much @missveronicatv
Just a couple of clarifying questions:
Q1: Does our line 99 look the same? Line 99 of my
members-grid.php
file reads:line99
<code><code>user['<?php echo $key; ?>'</code>]</code></code>
To my understanding, the modifications should reflect to code below
line99 <?php if( $key == 'What type(s) of agricultural land are you looking for? Check all that apply' ) echo 'Desired Land Type: '; ?> line100
user['<?php echo $key; ?>]
Q2:What exactly do the <code> pieces mean in your previous example:
<code>user['<?php echo $key; ?>']</code>
Q3:When defining the
$key
, does it need the be the filter meta (What type(s) of agricultural land are you looking for? Check all that apply), or the profile field meta_key (which is LS_property_type)Thank you!
Firstly, thank you again for your persistence with this issue. I fixed the issue and (this is slightly embarrassing) the width of my text module that I pasted my profile shortcode was set to a limiting height. Also, the module had a conditional visibility setting that wasn’t set to the corresponding user.
Throughout this troubleshooting process, I have come across another issue regarding the member profiles. In the member directory settings, I have selected several taglines to display on the users’ profile cards, but the taglines that I need to display are from custom profile fields. The issue is that the taglines don’t have the ability to be labeled to indicate what exactly they are referring to.
Here’s an example of the issue: one of the custom profile fields asks “What type(s) of agricultural land are you looking for? Check all that apply”, and the following options are:
- Fallow Land with Irrigation
- Fallow Land without Lrrigation
- Farm
- Orchard
- Pasture
- Ranch
- Rangeland
However, say the user chose options #1, #5, and #6, when this specific tagline is displayed, it just says Fallow Land with Irrigation, Pasture, Ranch. This tagline (or rather the information from this profile field) is critical for profiles to display, but without a label, it’s confusing info to have as a tagline. I’m trying to figure out how to make it simply say “Desired Land Type: Fallow Land with Irrigation, Pasture, Ranch”. Pretty much all of my taglines have this issue of lacking context.
How do I add labels to the profile card taglines so that they explain what the tagline info is referring to?