rodrego
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Remove admin menu items with accented lettersThanks! Solved the problem! ??
Forum: Fixing WordPress
In reply to: Trouble with current category highlight in a menuMichael, that did it for me. I did as you said, and the returned category ID = 10: “Home”.
And “Relacionamento” was ID = 3.
Weird, specially since all other posts worked fine.
I went back to the admin panel, and found out that all posts filed under category 3 were also under category 10. But that was also true to categories 2, 4, 5 and 6, which had no problem.
But… “Relacionamento” was the only category alphabetically behind “Home. All others started with letters A, C or E.
I changed “Home” to “Z-home”. It worked.
I guess WordPress just picks whatever category name appears first if all posts in a category also belong to another category. You can probably call this a bug, can’t you?
Forum: Fixing WordPress
In reply to: Trouble with current category highlight in a menuJust did it, nothing changed… Is there anything else you’d like me to show you to help understanding this issue?
Forum: Fixing WordPress
In reply to: Trouble with current category highlight in a menuCategory 9 is portfolio, and relacionamento is a a child of it, I just double-checked. Otherwise, I guess it wouldn’t even be listed… and the only problem is the highlight, the category is shown and the link works correctly.
Forum: Fixing WordPress
In reply to: Query injection vector issueThanks James, the guide actually helped a lot. I’m not sure I got rid of the infection yet, but it went a logn way.
Forum: Plugins
In reply to: [NextGEN Slide.js] Sort order images inside galleries not workingThe version of the plugin I’m using is 1.0 by Por Julian Andrade.
Forum: Hacks
In reply to: Highlight current category without using wp_list_categoriesThanks bcworkz, it works like charm!
No offense taken! I’m no developper, so when the code gets messy I have little idea what I’m actually doing. I try to adapt working solutions of similar situations I find on the internet, and sometimes I fail miserably.
Forum: Hacks
In reply to: Dynamic highlight not workingHi jmlapam,
I copied it from a working code (at least they say so at the thread): https://www.ads-software.com/support/topic/highlighting-current-post-title-in-get_posts-list?replies=8#post-1130031
Maybe I did something wrong. How can I make it work?
Forum: Hacks
In reply to: Dynamic highlight not workingDoesn’t work… It seems like get_the_ID; only works inside the loop, which is not my case?
Please let me know if you have any more ideas… Kind of stuck with that.
Forum: Hacks
In reply to: Dynamic highlight not workingHi, bcworkz, thanks for your answer.
If I put the line $IDOutsideLoop = $post->ID; inside the “foreach” command, all
li tags get the “current” attached to it. If I put it outside, no matter where, then none get it…Is there a different way to do it?
Forum: Hacks
In reply to: Get all images from a post with its captions and titlesHi bcworkz,
I found a solution more or less like that. Here it goes:
<?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' =>'any', 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ( $attachments as $attachment ) { echo apply_filters( 'the_title' , $attachment->post_title ); echo apply_filters( 'the_excerpt' , $attachment->post_excerpt ); the_attachment_link( $attachment->ID , true ); } } ?>
Forum: Hacks
In reply to: Get all images from a post with its captions and titlesAlmost forgot: each image goes in a different div, so I can’t have a code that just gets me a list of images, I suppose.
Instead, I think I need a code that allows me to do something like “the first attached image of this post goes on first div, 2nd one goes on this other div, 3rd goes on third div, and if there are no more images, no more divs are created”.
Is this feasible?
Forum: Fixing WordPress
In reply to: Highlight Current Page in WordPressThank you alchymyth, it worked great!
Forum: Fixing WordPress
In reply to: Displaying recent comments from only one postHi Rev. Voodoo,
I designed the website, but I’m not responsible for its maintenance. I’m doing this small change as a favor to the site owner, but it’s up to her to upgrade it.
Anyway, maybe I will have to upgrade if I can’t find an answer for this. ??
Don’t you have any ideas?
Forum: Fixing WordPress
In reply to: Displaying recent comments from only one postHi t-p,
I couldn’t see how one relates to the other… All I need is that the post comment section shows only X number of recent comments, instead of all of them.
Is this possible?