Andrew
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Typewriter Effect on Fonts?Okay, thank you, but I’m not looking for a font that looks like a typewriter, I’m looking for, say, a plugin, that does random effects on the letters in a font, live on the blog page.
So it would detect every usage of the letter ‘u’ and alternate the baseline at random.
That’s what I would want.
That would be so cool.
-Andrew
Forum: Fixing WordPress
In reply to: Can I Change My Username?I’m using the regular WP installation, not on a network or anything.
Forum: Fixing WordPress
In reply to: Can I Change My Username?No, probably because all of the posts and data (media, links, etc…) was put in by that user.
Forum: Fixing WordPress
In reply to: Can I Change My Username?I think I’ll just reinstall WordPress with a new user.
Is there anyway I can copy my links and media to the new installation? I know pretty much how to copy the media but not the links.
Thank you,
Andrew
Forum: Fixing WordPress
In reply to: Can I Change My Username?I tried that but the user I want to change is the main user, the first user created. WP won’t allow me to delete it.
Forum: Fixing WordPress
In reply to: get_posts and foreachOkay, to elaborate a little bit more on my question, I’d like to get the attachment uri to use in a shortcode in my template.
So how can I just get the attachment uri for use in a formatted link like so:
[Shortcode src="wp_get_attachment_url"]
based on the code in the previous post? Preferably without having to use PHP but HTML instead.
The code is pulling the post’s attachments but how can I format the display of the attachments?
Please help.
Thank you,
Andrew
Forum: Fixing WordPress
In reply to: How to display images separate from content?Okay, I got it to work, the problem was that on my local server there were no local attachments, so they weren’t showing.
Thank you,
Andrew
Forum: Fixing WordPress
In reply to: How to display images separate from content?Okay, can you help with the
foreach
part please?Perhaps help me with a code that I can get to work on my page please?
Thank you,
Andrew
Forum: Fixing WordPress
In reply to: Get Image Attachment in a TemplateI am using this function in my post too.
First, paste this function on your functions.php file.
function catch_that_image() {
global $post, $posts;
$first_img = ”;
ob_start();
ob_end_clean();
$output = preg_match_all(‘/<img.+src=[\'”]([^\'”]+)[\'”].*>/i’, $post->post_content, $matches);
$first_img = $matches [1] [0];if(empty($first_img)){ //Defines a default image
$first_img = “/images/default.jpg”;
}
return $first_img;
}Once done, you can simply call the function within the loop to display the first image from the post:
<?php echo catch_that_image() ?>
How can I modify it to display all images attached?
Please help.
Thank you,
Andrew
Forum: Fixing WordPress
In reply to: Get Image Attachment in a TemplateOkay, thank you.
But how about if I have say 2+ images?
Thank you,
Andrew
Forum: Fixing WordPress
In reply to: Get Image Attachment in a TemplateI’m using this on a Page but it’s not showing the post’s images:
<?php $args= array( 'category_name' => 'Category_Name', 'paged' => $paged ); // The Query query_posts( $args ); // The Loop while ( have_posts() ) : the_post(); ?> <?php echo wp_get_attachment_image( 1 ); ?> <?php endwhile ; // Reset Post Data wp_reset_postdata () ; ?>
Forum: Fixing WordPress
In reply to: Get Image Attachment in a TemplateI tried using this in a loop and nothing happened:
<?php echo wp_get_attachment_image( 1 ); ?>
Please help,
Andrew
Forum: Fixing WordPress
In reply to: How to Format a Link to the Category?Oh, by the way, I need to show the category of a post, not just post a link to a category.
Please help.
Thank you,
Andrew
Forum: Fixing WordPress
In reply to: How to Format a Link to the Category?Forum: Fixing WordPress
In reply to: Get Image Attachment in a TemplateYou can use the wp_get_attachement_image function to pull all of the attached images to a post or page, but I’m not sure how to do it for other posts as well.
How can I display them on the front page loop?
Thank you,
Andrew