Ok, lets see…
re: I need to pull the same fields from the database as on the old site. This includes the following fields (format is Data Field > Label below)
Gridder is designed to only show those details on the profile page. So, the only way to add those fields is to edit the template files.
You are going to have to edit the card.php file found here:
../wp-content/plugins/connections-gridder/
You’ll be able to copy/paste the relevant code from the card-single.php file.
All the shortcode options from the old site still work with Gridder, but since those relate to items on the profile page they will not have any affect. However, after you pull in the code from the card-single.php file into the card.php file they’ll work just fine.
re: I’d like to be able to style these fields (phone, email, and the fields above) a little bit more. Do you have the css tags so I can do this? I didn’t see it when I looked at the code
These do have classes in the HTML markup that you can select with CSS. Not sure what code you looked at, they do have classes, I promise.
re: I use a plug in that calculates the number of years at the company and number of years in the industry. This is important to the client, but it seems to be disabled in this new version and doesn’t recognize the shortcode. Is there any way around this? The plugin is called “MagicDate.”
This is because shortcodes are not applied with excerpts. I didn’t look at every single entry but it seems the bio text is small for them all. What you can do is edit the card.php to use the full bio instead of the excerpt. Change this:
if ( $atts['excerpt_length'] ) {
echo wp_trim_words( $entry->getBio(), $atts['excerpt_length'], $atts['excerpt_more'] );
} else {
echo $entry->getBio();
}
to this:
echo $entry->getBio();
Lastly, I mentioned editing the PHP files several times… I highly recommend following the advice in this QuickTip to ensure these changes are update safe.
Hope that helps!
