il1cit
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change background-image url using WordPress back-endwithout messing up with the css code.
I would like to know if there’s a plugin or something that just allowed me to upload a picture in the Admin panel, and then it would change the background-image of a div previously defined in css.
Forum: Fixing WordPress
In reply to: Thumbnail All Display Same ImageAnd that does it! Thank you very much for your help!
Forum: Fixing WordPress
In reply to: Display specific posts on pages?Yes, this is coded in the index.php or wherever you want your specific post.
Your client just has to change that $post_id number to the article he wants, so you just tell him where the line is and he edits it everytime he likes, through the admin panel theme editor.
Don’t know any other way to do this, but I’m sure there are plugins available for that like the one justingreerbbi posted.
Forum: Fixing WordPress
In reply to: Thumbnail All Display Same ImageYou sir, are awesome! Displaying the correct images now.
However, these images are now in their default size and not in the size I’ve defined in the functions.php file through this line:
set_post_thumbnail_size( 127, 85, true);How can I fix this?
Thank you so much for your help. Give me your paypal account and I’ll buy you a beer for your work 🙂
Forum: Fixing WordPress
In reply to: Display specific posts on pages?Hello,
Try using this code where you want the specific post:
<?php $post_id = 73; $queried_post = get_post($post_id); ?> <p><?php echo $queried_post->post_content; ?></p> <?php echo $queried_post->post_title; ?>Change the $post_id number to your specific post.
Forum: Fixing WordPress
In reply to: Thumbnail All Display Same Imageindex.php through pastebin.com
The problem is in the #artwrap div (which is the wrapper for the articles). I have four specific articles that I want to show, and they are divided by the divs #artwrap1, #artwrap2, #artwrap3 and #artwrap4.
As you can see I use the method above to get each of those articles, the only thing changed is the $post_id. The content loads fine, but the thumbnails are all the same. When I open the article page though, they all appear with the proper image and not the same one.
Thank you for your help, let me know if there’s anything else you need to see.
Forum: Fixing WordPress
In reply to: Thumbnail All Display Same ImageThank you for the quick response.
Sorry, I missed the .com / .org difference, so I will give more detailed information about my problem.
I can’t provide a link from the site itself because it’s localhosted, and the theme I’m currently building it from scratch so no link for that either :\
The problem is simple to explain though: I’m using the thumbnail wordpress system, and upload different thumbnails for each article. What happens is that they all display the same thumbnail.
Check here for visual aid: http://imageshack.us/photo/my-images/684/articleproblem.png/
The code I’m using is the following:
functions.php
add_theme_support('nav-menus'); if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9 add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 127, 85, true); // Normal post thumbnails add_image_size('guia', 389, 521, true); // Permalink thumbnail size }the article module in index.php
<?php $post_id = 73; $queried_post = get_post($post_id); if ( has_post_thumbnail( $post_id ) ) { the_post_thumbnail(); } ?> <p><?php echo $queried_post->post_content; ?></p> <?php echo $queried_post->post_title; ?>(I’m using this last code to fetch a specific article)
Thank you so much for your help!
[Please post code snippets between backticks or use the code button.]