coche09
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: htaccess redirect, now can’t access admin panelI managed to fix the issue:
Renamed the current theme folder in order to revert to the default theme. This allowed me to log in to the admin panel. Then re-activated the theme i was using before and voila.No clue why the theme broke after htaccess, but that resolved it for me.
Forum: Fixing WordPress
In reply to: htaccess redirect, now can’t access admin panelAny ideas anyone?
I’ve deleted the htaccess file, and tried the login but it still gives me a white page. I’ve reuploaded the original file but still no luck.If I visit http://myaddress.com/wp-login.php, I DO see the login page. If i try to login –> blank page.
I’ve only been been able to find info on the redirect loop bug, the solutions point at deleting the htaccess then changing the url… but still can’t see dashboard after deleting htaccess.
Does this sound like some issue with the database?
Thanks a million
Forum: Fixing WordPress
In reply to: Highlight Multiple Categories in Sidebar?Hey Alchy
Thanks a bunch for your help. I’ll take a look at the code you posted in there.Really really appreciate it!
Thanks again
C
Forum: Fixing WordPress
In reply to: Highlight Multiple Categories in Sidebar?Thanks alchymyth for the response.
I will take a look at it with the in_category tag.
a link to the site:
http://www.petebarry.com/portfolio (right now im testing something with the categories and the post title)the ‘custom widget plugin’ shouldn’t really be interfering, it’s a plugin that allows you to write php/html and creates a widget (http://wordpress.org/extend/plugins/mycustomwidget/). All I’m doing with it is creating 2 category lists including different cats:
widget 1
wp_list_categories ('include=1,2,3,4,5&title=');
widget 2
wp_list_categories ('include=5,6,7,8,5&title=');I guess the main thing i need to figure out is how to add a custom class to another item from the categories list OR to the current post title
Alternatively, if having two categories highlighted is too tricky, it could be done by adding the custom class to a page ( i can put the content in a page instead of a post) or as mentioned before, to the post title. the key is to be able to have them highlighted at the SAME TIME .
Thanks
cForum: Fixing WordPress
In reply to: Highlight Multiple Categories in Sidebar?Any ideas anyone?
I’ve been using this code below, i feel like im getting closer but still can’t figure it out.
how can I assign a new class called current to another category to which the post also belongs to in order to highlight it?any help is greatly appreciated!
<?php if (is_category ('cat1')){echo ' class="current"'; }–> this only echoes the text “class=current”.`<?php if (is_category (‘cat1’)){echo ‘class= “current”‘ ;
wp_list_categories (‘include=4&title=’);} ?>` –> not assigning the class, just echoing the text but showing the category i need.`<?php if (is_category (‘cat1’)){
echo ‘class= “current”‘ ; } ?>
“> <?php wp_list_categories (‘include=4&title=’);?>` –> this duplicates the categories and the class is empty!thanks!
c
Forum: Fixing WordPress
In reply to: Display child but hide parent in sidebar?I should add, the other way I tried getting this to work was to do it by showing categories and recent posts in the sidebar. However, I couldn’t get the post title to highlight when the category to which the post belongs is selected or viceversa: highlight the category while the post is selected.
I can highlight the current category though through the css.
I haven’t been able to find much about highlighting the post title in the sidebar.
Thanks
C
Forum: Fixing WordPress
In reply to: Display child but hide parent in sidebar?Hey recogn1ze, thanks a bunch for the response.
I just tested what you mentioned and one of the issues I found with that method is that it doesn’t keep the categories highlighted: when you exclude the parent of one of the child categories, the child category looses the styling, I imagine it’s because it doesn’t ‘know’ it has a parent? This highlighting is actually THE reason why I’m trying to do this through categories so I’d like to have that working.
This ‘partially’ works:
wp_list_categories(‘orderby=ID&title_li=&depth=1’); –show parents highlighted in css through current-cat.
wp_list_categories(‘orderby=ID&title_li=’);– shows both parent and child highlighted in css through current-cat, but need to display only the child.It makes me wonder if there is a way to target the styling then to only the child while checking if it has a parent while having the parent excluded…
Any ideas if/how this could work?
Cheers
C