ainhoa711
Forum Replies Created
-
Forum: Hacks
In reply to: Display posts grouped by taxonomyThanks! You’re right, everything will be in the cookies level (at least that’s the idea). I’ll create a third level and start working on the code… thanks for your help!!
Forum: Hacks
In reply to: Display posts grouped by taxonomyDone: https://pastebin.com/mKDvM6Zc
Please be kind with my code, I have no idea what I’m doing… all of it was trial & error.Forum: Hacks
In reply to: Display posts grouped by taxonomyWhen I grow to have more recipes I’ll show the latest ones or create index pages (so only show the latest of each category and then link to more). I don’t expect to have more than two levels deep and certainly not more than three.
I’ve already managed to create a taxonomy.php that sort of works, but not quite. I have another taxonomy (wedding) with five terms and you can see the results here: https://www.alittlebiteofeverything.com/our-wedding/planning/The problem is that if I apply the same taxonomy.php to recipes it doesn’t distinguish the upper level terms (savory/sweet) from the lower level ones (cookies/cakes/appetizers/entrees) and treats them all equally, showing results for all of them.
So basically I already managed to write a taxonomy.php but I could use some help modifying the code so that it only shows results of “children” terms and not of their parents’. Hope that makes sense, and thanks for your help!
Forum: Themes and Templates
In reply to: How to ad a blog to WPESP themeHey Miles, how did you manage to have separate “home” and “portfolio” pages? and also, how do you label some projects with the “new” tag? any help would really be appreciated!
– AinhoaForum: Fixing WordPress
In reply to: webpage doesn’t work – can’t even access WP backendThanks, I’m going to contact my hosting company right now. How can I change my database password though? Sorry, I really don’t know much about the stuff…
Forum: Fixing WordPress
In reply to: Webpage not displaying properly after working 2 years!By the way, thanks for your help!
Forum: Fixing WordPress
In reply to: Webpage not displaying properly after working 2 years!Here it is…
Forum: Fixing WordPress
In reply to: Webpage not displaying properly after working 2 years!hmm… I re-installed the original theme and substituted file by file the ones I had customized. I pinned down the problem – it’s the header. I don’t know what’s wrong with it though…
Forum: Fixing WordPress
In reply to: Webpage not displaying properly after working 2 years!Changing the theme helps… but the theme I was using was heavily customized so I’d like to keep it, obviously. Deactivating plugins but keeping the theme doesn’t help at all. I don’t know what it can be, the only thing I did was receive a comment! And answer that comment and post a new entry! What I don’t get is why one of the pages displays correctly while the others don’t…
Forum: Themes and Templates
In reply to: Portfolio – WPESP Theme@norcross, I’d love to see the WPESP theme with the modifications you made. I think it would be good to have the WORK page be the HOME page and have a separate PORTFOLIO page for all the projects. I see milescaldwell got this working, I’d love to make this work for my site!
Yes, I know, but a lot of answers are restricted to paying users, and although I love the theme (I think it’s amazing especially for using WP as CMS) I’m a broke college student and I’m doing the website for free for my boyfriend’s firm so I can’t justify the cost…
Any help would be greatly appreciated.
Forum: Fixing WordPress
In reply to: Installing WP (2nd blog) on a subdomain errorI checked both links and uploaded all the files again but the error is still there, I can see the webpage but not login; when I go to /wp-admin the following error appears (the errors I mentioned above appear when I go to wp-login)
?> Warning: Cannot modify header information - headers already sent by (output started at /home/ainhacom/public_html/izaskun/wp-config.php:26) in /home/ainhacom/public_html/izaskun/wp-includes/pluggable.php on line 341
Forum: Themes and Templates
In reply to: How to highlight a parent page item?Sorry, but I followed the instructions here and on the thread mentioned above and it’s not working. I managed to set up my submenu, you can check it out at https://www.ainhoavega.com/prueba . Any suggestions on how to highlight the parent page when you’re on the children page? For example how to highlight “PRUEBA” when you’re in https://www.ainhoavega.com/prueba/subpagina-1 . Which selector should I used or what condition (php). Right now my code for the submenu is:
<h7><?php if(intval($post->post_parent)>0) { while(intval($post->post_parent)>0) $post = get_post($post->post_parent); } echo '<a href="'.get_permalink($post->ID).'">'.get_the_title($post->ID).'</a>'; ?>:</h7> <?php global $wp_query; if( empty($wp_query->post->post_parent) ) { $parent = $wp_query->post->ID; } else { $parent = $wp_query->post->post_parent; } wp_list_pages("title_li=&child_of=$parent"); ?>
And the CSS:
#submenu { padding-top:12px; } #submenu ul { margin:0; padding:0; } #submenu li { float:left; margin:0; padding:0; list-style-type:none; } #submenu li a { display:block; padding:0 10px 0 10px; font-size:0.9em; letter-spacing:1px; } * html #submenu a {width:1%;} /* see https://www.positioniseverything.net/explorer/escape-floats.html */ h7 a, h7 a:hover, h7 {color: #fec42d; font-weight: bold; text-transform: uppercase; font-size: 0.9em; float: left; } #submenu li { border-right: 1px dotted #fec42d; margin: 0 5px 0 5px; } #submenu a {color:#fec42d;} #submenu li.current_page_item a:link, #submenu li.current_page_item a:visited, #submenu li.current_page_item a:hover, #submenu li.current_page_item a:active, #submenu a:hover {color:#fec42d; font-weight: bold; border-right-color: 1px solid #fec42d; }
Forum: Plugins
In reply to: list_pages template tagNever mind, I just figured it out myself. I forgot to add the id=”submenu” (#submenu) in the CSS file. Works perfectly fine right now and I can edit the submenu without altering the main menu.
Sorry about that. My blog is https://www.ainhoavega.com and I’m using the theme Blix