Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
Ok I dug into the code myself and I found the problem:
First on line 83 of /flexform/archive.php the $author variable is being set with an object.
<?php $author = get_userdata( get_query_var('author') ); ?>
Then on lines 378-380 of /breadcrumb_navxt/breadcrumb_navxt_class.php the global reference to $author is being accessed. $author should be int, however it is now an object set from the archive page in flexform, thus the return value will always be 1 (user_id #1).
global $author;
//Get the Author name, note it is an object
$curauth = (isset($_GET['author_name'])) ? get_userdatabylogin($author_name) : get_userdata(intval($author));
I have disabled all plugins and changed my theme to TwentyTwelve and the $author variable is global and is correctly set to the author ID. I am not sure who’s bug this is (flexform, wp, or breadcrumb-navxt) because according to the WP codex, $author is not listed as a global (only $authordata). However breadcrumb-navxt is obviously expecting a global $author.
Hope this helps.
~Jason
July 26, 2013 at 12:37 pm in reply to: Author in breadcrumb incorrectly defaults to user id 1 #13003Hello Support, any insight into this?
I figured out what I was doing wrong. If you want a slider added to the top of the page full-width as in the Demo you need to add the slider via the “Page Meta -> Slider Options -> Revolution slider alias”. I was incorrectly adding the slider via the Swift Page Builder Revolution component. Hope this helps someone else.
~Jason
July 6, 2013 at 12:40 pm in reply to: Grab Image from Featured image for Standard Blog display? #10549This reply has been marked as private.July 5, 2013 at 1:34 pm in reply to: Grab Image from Featured image for Standard Blog display? #10400Hello,
I am having the same issue as razorfrog. I have thousands of posts and my featured image is not showing up by default for any of them. I would prefer the suggested fix of using “image” as the default post thumbnail type.
Please let me know what I need to do.
Thanks,
Jason -
Posted in: We hit Power Elite.