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.
Tagged: 8.2.6, name_format, shortcode, template
- This topic has 4 replies, 2 voices, and was last updated 11 years, 3 months ago by
dynaguy.
-
AuthorPosts
-
05/07/2015 at 2:50 pm #333730
dynaguy
GuestI just installed this great plugin in my personal wordpress blog and now everything is in default settings. When visit the page I see the name displayed as [first_name] [last_name]. I really want alter the order so it will display as [last_name] [first_name] and sort by the [last_name]. Could you give me some help please?
Thanks a lot.
05/08/2015 at 9:26 am #333758Steven Zahm
Keymaster@ dynaguy
There’s two ways to do this. The first, you’ll need one of the templates sold here and use the
name_formatshortcode options to change the name presentation. The second would be to create a template override file for your chosen template and edit the PHP so the name shows like you would like it to.Hope that helps!
05/08/2015 at 3:37 pm #333795dynaguy
GuestThanks for the help.
So I made the copy of the card template as the override and enabled it. I looked at the code and I think it is related with the function getNameBlock(). I have very limited knowledge of PHP so I don’t know what to do next.
I also found that the class.entry-output.php is the file where getNameBlock() is. I modified this file and it does works! But I know this is not the correct way and I’ll need to edit this file each time the plugin get updated.
Could you please teach me how to modify the override template to accomplish my request?
05/11/2015 at 10:09 am #333905Steven Zahm
Keymaster@ dynaguy
In the template file, change:
$entry->getNameBlock();to:
$entry->getNameBlock( array( 'format' => '%last%, %first%' ) );Hope that helps!
05/11/2015 at 1:01 pm #333922dynaguy
GuestThis works great! Thanks a lot Steven!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
