terminator87
Forum Replies Created
-
Forum: Themes and Templates
In reply to: get_the_category only displays 'Array'Thanks for your help! Fiddling with it it turned out one single thing was wrong in the code.
The code that makes it work:
$categories = get_the_category(); $postheader .= '<h3 class="entry-title">' . $categories[0]->cat_name . '</h3>'; $postheader .= '<h3 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h3>';
Forum: Themes and Templates
In reply to: get_the_category only displays 'Array'Okay, but this is not my problem. I don’t care if a post is in more than 1 category or not ’cause I will not use this.
When I use get_the_category I can style it perfectly BUT it does not return anything but the word ‘Array’.
When I use the_category the styling that comes with it in category-template.php (wp-includes) is so different it DOES show the correct category but not WHERE I want it to be.
Maybe the short question is: how do I give the_category the <div> I want it to be in?
I’ve tried so many variations:
full (search puts this in): https://www.domain.com/wordpress/wp-content/uploads/imagerotator.swf
And without the wordpress/, without the http part, without the www part. I think it finds the rotator.swf just not the images or something?
CHMOD is all set to 755 where necessary. Can it have anything to do with installing the plugin ‘Role Scoping for NextGEN’? I don’t think so…
Maybe I have to edit the URL in the Plugin itself? It just needs to understand my pics are in the usual gallery folder and so is the rotator, I just don’t want /wordpress trailing the URL lol…
Forum: Themes and Templates
In reply to: Current navigation not workingThank you so much! I just bluntly copied and pasted
.current_page_item { … } /* the current Page */
because that was the ‘code missing’ (both active and hover work perfectly) and it worked!Not sure why the current function in the list # etc. doesn’t work. There wasn’t any reference to nav-current at the time you looked because I was ‘experimenting’ hahaha. Thanks again!