mpttt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Ads in Sidebar on Homepage only?Ok, thanks for trying. I appreciate your help.
Forum: Fixing WordPress
In reply to: Ads in Sidebar on Homepage only?I verified it’s not using 1 main template page. It uses separate pages like index.php and single.php for the homepage and post pages.
Forum: Fixing WordPress
In reply to: Ads in Sidebar on Homepage only?It’s using a theme called Cutline 1.1
Forum: Fixing WordPress
In reply to: Ads in Sidebar on Homepage only?Yep, that’s working. Both test messages are showing on every page.
Forum: Fixing WordPress
In reply to: Ads in Sidebar on Homepage only?Hi,
It’s pulling from the file sidebar.php, (no widgets via admin). However there is code for widgets in the sidebar.php file.
Forum: Fixing WordPress
In reply to: Ads in Sidebar on Homepage only?Thank you for your reply.
It’s very strange. I see that code works for others, but for some reason not on my blog. What is in “HTML code for ads” still shows up on every page.
I wonder if it could be the template, but no idea how to test what is wrong.
Forum: Fixing WordPress
In reply to: Change permalink to “true” on this statement?I am willing to pay someone who can figure this out. If you have a PayPal account email, just let me know the cost. ??
Forum: Fixing WordPress
In reply to: Show latest post’s gallery images on static homepage?I am willing to pay someone who can figure this out. If you have a PayPal account email, just let me know the cost. ??
Forum: Fixing WordPress
In reply to: Link attachments to page, not file? and add space.Thanks for taking a look. I’m not sure the get_children will accomplish the goal of pulling the latest post plus attachments to the homepage template though.
It’s working the way I want so far. Except there is a specific statement in the URL above that says a new parameter could be added to get the attachment links to point to their pages instead of the files, but it doesn’t say how, just:
Examples: <?php // Default the_attachment_link(7); // Show an image or icon at no more than 48 x 48 pixels the_attachment_link( 13, false, array(48, 48) ); // Show an image at full size (also linked to the file) the_attachment_link( 4, true ); ?> excerpt: permalink Link to the attachment page (true) or directly to the file/image (false; default).
I would like to do that last part.
I tried adding a 3rd parameter as “true” below, but that doesn’t work. I just don’t understand how to signify permalink should be true.
the_attachment_link($attachment->ID, false, true);
For reference, here is the full code I use in my homepage template to pull the most recent post, and list its attachments:
<?php $lastposts = get_posts('numberposts=1'); foreach($lastposts as $post) : setup_postdata($post); ?> <h3><?php the_date(); ?> <br /> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php endforeach; ?> <?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { the_attachment_link($attachment->ID, false); } } ?>
Thanks again for any comments.
Forum: Fixing WordPress
In reply to: How to make the normal “Homepage” an interior page?Thank you for the quick response. I appreciate your help.
I am having the same problem. Something about the URL not right. Check the log it displays at the end of the process, and you’ll see an error near the bottom. Not sure what the solution is.
Forum: Plugins
In reply to: [Plugin: WordPress Automatic upgrade] Error copying new upgrade filesSame thing is happening to me. Anybody have any ideas?
Sorry, to be more specific, there is an extra forward slash in the URL after the install dir:
/var/www/vhosts/domain.com/httpdocs/blog//wpau-backup/wordpress/wp-admin