ernestg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: FaceBook grabs incorrect thumbnail image!Fixed! Added this to my head in my header.php
<meta property="og:image" content="<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> <?php echo $image[0]; ?>" />
Forum: Themes and Templates
In reply to: Can't make my post BOLDI believe I figured it out. The css reset had the code:
font: inherit;
I took that out and everything seems to be running smoothly. Thanks anyway. If you still have any other suggestion let me know!Forum: Themes and Templates
In reply to: Can't make my post BOLDYes, sorry it is my custom theme. It only has one css document for styling. And the css reset code is at the top. I don’t understand why the css reset overrides the edits I make.
Forum: Plugins
In reply to: GD Star rating top userEvery find out how to do this?
Forum: Plugins
In reply to: [GD Star Rating] [Plugin: GD Star Rating] GD Star ratingEver find out how to do this?
Forum: Plugins
In reply to: Post RatingFor anyone in the future. I’ve started to use GD star ratings. Apparently it supports custom graphics.
Forum: Plugins
In reply to: How to block unregistered users from viewing a postIf anyone finds this in the future. The code that was the solution goes as follows.
<?php if ( in_category( 'Cars' ) && ! is_user_logged_in() ) { ?> <!-- HTML markup here --> <?php } else { ?> <!-- other HTML markup here --> <?php } ?>
Forum: Plugins
In reply to: Front End User PostThanks
Forum: Plugins
In reply to: Front End User PostYeah. By the way, totally forgot about this, but I was testing out the form and I just realized you can use the form even if you are not registered. Any simple way to deny people unless they register?
Forum: Plugins
In reply to: Front End User PostYep! That bit of code did the trick! Thank you so much.
Forum: Plugins
In reply to: Front End User PostYeah, just when you hover over the image.
You can see in this picture it says “Penguins”
Image
I would like it to say “Title Test”Forum: Plugins
In reply to: Front End User PostThis worked! You’ve been a great help. Fixed my 2 month long problem in less than a day.
<?php echo wp_get_attachment_image( $attachment->ID, 'thumbnail' ); ?>
Last thing that’s more aesthetic than anything, but would you happen to know how to change the text that comes up when you hover over the image? I want it to be the title, but the image name comes up.
Forum: Plugins
In reply to: Front End User PostSo instead of:
<?php the_attachment_link( $attachment->ID , false ); ?>
In the loop I should put:
<?php echo wp_get_attachment_image( 1 ); ?>
EDIT: So I tried a couple of combonations of the code and my last attempt got me this, but it doesn’t work. Ideas? Thanks again
<?php wp_get_attachment_image( $attachment_id->ID, false ); ?>
Forum: Plugins
In reply to: Front End User PostSounds good. I’m also being bombarded with work from my job and school but, the code worked (just so ya’ know). The images when they are shown in the loop are coming up full sized so I’m looking to see If I can just set a max size so I can have all images automatically re-size but keep their proportions.
EDIT: Fixed that problem. I just have one (hopefully simeple) question. The image is coming up as a link to the image location. Do you know where I would go to change the link to go to the single post?
Forum: Plugins
In reply to: Front End User PostYour announcement of 3.3 coming soon gives me some hope. I think I’m going to try your post on your website. If I have a problem can I ask you on here? Thanks in advance