Rodrigo G. D'Agostino
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: the_permalink little problemOk, I got it solved on my own! This is how it goes:
<div id="noticia"> <?php $args = array( 'cat' => 10, 'posts_per_page' => 3 ); $query = new WP_Query( $args ); while($query->have_posts()): $query->next_post(); $id = $query->post->ID; echo '<h2>'; echo '<a href="'. get_permalink($id) .'">'. get_the_title($id) .'</a>'; echo '</h2>'; echo get_the_excerpt($id); endwhile; ?>
I didn’t realize that “echo” and “the_permalink()” were both trying to print information. When I realized that I just replaced “the_permalink()” for “get_permalink($id)” (the $id between brackets is very important too), so it call the information leaving the printing part to “echo” ??
Now I have another issue. “get_the_excerpt()” is getting the excerpt from the most recent article instead of using the current article :S
Any ideas please?
Forum: Fixing WordPress
In reply to: PHP concatenationWow! Another great idea!
Thanks a lot for everything alchymyth! Hope to see around ??Forum: Fixing WordPress
In reply to: PHP concatenationOMG! I feel so stupid now xP I got so into it that I didn’t realize I could solve it so easily! Thank you so much alchymyth! ??
And just for extra-learning… is there any way to concatenate the whole thing using just one “<?php…>?”?
Forum: Fixing WordPress
In reply to: PHP concatenationI’m sorry, I missed a little part!
Here we go again:<div class="entry-meta"> <?php edit_post_link( __( 'Edit', 'fcwk' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?> </div>
Maybe now rings another bell ??
I need to make the hole thing disappear, because that’s the only way in which my design will stay the way I want it to stay ??Forum: Themes and Templates
In reply to: Twenty Eleven Theme ModificationsYou can take away the little gap just by making a little change in line 684, where you’ll find this:
#main { clear: both; padding: 1.625em 0 0; }
Just replace it for this:
#main { clear: both; padding: 0; }
If you want to remove more white space between the top menu and the image slider, you’ll have to do some extra changes…
Forum: Themes and Templates
In reply to: How do I change the color of my Comment LinkI’m really glad to hear that drewdroid! ?? Really happy to help you! Hope to see around here again ;P
Forum: Themes and Templates
In reply to: spacing helpHow is it that you got your thumbnails at 305×202? How did you change the default value in the first place?
It’s very easy to solve the issue about spacing between galleries’ thumbnails, we just have to solve the size issue first.
Forum: Themes and Templates
In reply to: spacing helpI find some information that can help you solve your problem ??
Take a look at this post. If you want to change the space between thumbnails, then you need to make them a little bit smaller so we can use that space to separate them a little bit more. Please, follow those instructions and tell me when your ready. I think you should modify the default size to 290px or a close value.Forum: Themes and Templates
In reply to: Different headers and menu in different categoryNow I get it clearly! I’ve been working for a few hours on a possible solution for your problem, and I think I’m getting closer ?? I have to go out right now, but I’ll keep working on this as soon as I can, I promise!
WordPress gives me big headaches, but I really like learning it. After trying hard, I finally got how to register a menu so it works fine on the CMS, using the function refence wp_page_menu(). Using this, you can register your second menu so you’ll be able to use it inside your theme. Here’s a sample of what you could do, open your functions.php file and add a secondary menu right after the primary:
register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'twentyten' ), 'english' => __( 'English Navigation', 'twentyten' ), ) );
This is what I acchieved so far. I know it’s not much but it took me a while to define it correctly for my theme. In the Admin panel, go to Appereance > Menus. If you can see a second slot in “Theme Location” saying “English Navigation”, it means the registration worked out ??
Now we just need to find the place to put this code:
<?php wp_nav_menu( array( 'container_class' => 'menu-header-english', 'theme_location' => 'english' ) ); ?>
and make the pages recognize when to use the English NavBar. I hope I can get the solution soon!
Forum: Themes and Templates
In reply to: Different headers and menu in different categorySo you want all the Norwegian menu translated to English on web address https://www.tangotango.no/english? I’m not sure if I’m getting the right idea of what you’re trying to do. I was also thinking that you might be trying to add a different menu with different items for the English part. Give me some more tips ??
Forum: Themes and Templates
In reply to: How do I change the color of my Comment LinkI installed Artisteer and checked out the structure of the information in the files that program generates, and couldn’t find what I was looking for. Artisteer has a very different structure.
So I guess that leaves us with the other solution. But jrav001’s solution was incomplete and a little wrong, so here you have the one that will completely work for what you want to do. First repleace that piece of code you attached before in your functions.php file for this:
case 'comments': if(is_page() || is_single()) break; ob_start(); comments_popup_link(__('<span class="comments-link">Please leave a comment ?</span>', THEME_NS), __('<span class="comments-link">1 Comment ?</span>', THEME_NS), __('<span class="comments-link">% Comments ?</span>', THEME_NS), '', __('<span class="comments-link">Comments Closed</span>', THEME_NS) ); $result[] = art_get_post_icon($icon) . ob_get_clean();
And then you need to add this in your style.css:
.comments-link { color: #900; } a .comments-link:hover { color: #F00; }
You should change the colors to the ones you want to use. The first one is for the color of the comments’ link, and the second one is for when you put your mouse over the link.
And that’s all! It should work like a charm ?? Good luck drewdroid!
Forum: Themes and Templates
In reply to: How do I change the color of my Comment LinkThat’s the easy way I was talking about. You can solve your problem with jrav001’s solution, but I’ll prepare the one I talked you about, and then you can choose which way to go ??
Forum: Themes and Templates
In reply to: How do I change the color of my Comment LinkI’m guessing the one file we have to edit is post.php. I’d be really greatful if you could show me the code in that file…
Forum: Themes and Templates
In reply to: How do I change the color of my Comment LinkOMG! That’s really weird :S But if your site is working, then I guess it’s possible ?? Can you name for me the list of files based on your theme folder?
Forum: Themes and Templates
In reply to: spacing helpThere’s a way to add space between the pictures, but the structure will break because there’s not enough space to keep them in line. Are you using a plugin for the galleries? Is there a chance you can reduce the size of the pictures?