Thanks. Found the zip file but learned that the link you mentioned for updating from a zip file is only available via *another* plugin. I used this one:
https://wordpress.org/plugins/easy-theme-and-plugin-upgrades/
It’s updated now.
PS. I added this to the custom template (based off single.php), towards the top:
//read the current author object - used by here in title and by /parts/author-header.php
$part_cur_auth_obj = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
`
I thought that would do it but I’m still not getting results as in the previous examples.
I’ve been working on this some more and have created a custom template for the Publication detail page. Most of it seems to be working except the variable part_cur_auth_obj isn’t returning any results. For example, this
<?php echo $part_cur_auth_obj->display_name; ?>
and this
<?php echo $part_cur_auth_obj->description; ?>
return no results (are blank).
I tried adding $part_cur_auth_obj as a global to the top of the page, but that didn’t have any effect. If I knew more PHP, I’d probably be able to see the reason this isn’t working, but I don’t. Any chance you could point me in the right direction?
Sorry, you weren’t the right person to ask about the CPT name. I’m using the Types plugin (part of Toolset) to create custom post types and I’m not sure where they store the function so that I can confirm the name. I’m pretty sure I’m using the right one but will confirm and then go back to the issue of pulling author posts for a custom post types. It’s a critical issue for the site, so I’ll have to figure out something.
I did try that. In fact I tried it in several places but it doesn’t work anywhere. One thing I wanted to confirm. Should the name of the custom post type entered in the function be exactly the same as what is entered under the field “slug” in Types? I’ve been looking all over to confirm actual name of the CPT per Types and I think this is it. If so, the function isn’t working.
There isn’t a “post” class on the page. This is the code for the div that contains the “thumb-wrap” div:
<article id="post-50" class="post-50 pub type-pub status-publish hentry" itemscope="" itemtype="http://schema.org/Article">
I don’t know the code well enough to know what post-50 refers to or where else it could be used.
Great, that worked! although I had to omit .post as a selector for the css to work. I hope this doesn’t cause conflicts with .thumb-wrap elsewhere.
I added this function and changed the post-type name but don’t see any change. I’m not really sure what this function is supposed to do. Should I call it somewhere?