Michael Moore
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce – Adjusting Thumbnail Crop Positioning?Has anyone found a fix for this? Cropping with the media editor works but woocommerce doesnt use the newly cropped image for its thumb. Ive tried regenerating thumbs and that doesnt help.
Edit: Actually, I dont think its a woocommerce issue. The media uploader doesnt use the newly cropped image. hmm.
Forum: Fixing WordPress
In reply to: Save Custom Fields on Custom Post Type Sub Menu PageI added them using the
attachment_fields_to_edit
hook. I have it all working now. I would have rather had the edit form popup in thickbox or some modal but I couldnt find a way to pass the attachment id into thickbox through the url.Forum: Fixing WordPress
In reply to: Permalink RewriteThanks Christine. Reading your post, I realized youre right. There is no reason to use .html. But, I still had .html hardcoded links as well. So, I removed .html from my permalink structure added
# Rewrite .html to postname/ RedirectMatch 301 ^/([^/]+)/([^/.]+)\.html$ /$1/$2/ RedirectMatch 301 ^/([^/]+)/([^/]+)/([^/.]+)\.html$ /$1/$2/$3/
to my .htaccess to redirect those hardcoded .html links to /category/postname structure links. Works great.
Forum: Fixing WordPress
In reply to: Permalink RewriteThanks for the reply. But I can’t think of a way to search and replace them because they are all different links. It would bascially be a manual update of 1200 links at that point. Im hoping this can be done with .htaccess or or an add_rewrite_rule. Im just unsure of the regex to use.
Forum: Fixing WordPress
In reply to: Two categories on one page – need help.Im pretty sure the comments are closed thing means that comments have been disabled for either all blog posts or for that specific post. Check in wp-admin settings-discussion for the global comment settings, then each blog post or page will have individual settings in case you want to allow or disallow comments on a specific post.
Forum: Fixing WordPress
In reply to: WordPress Login Not Working getting False RedirectHmmm… it looks though you might have the wrong URL entered for your homepage address in the WP backend. Since you can’t get to the back end, you’ll have to use phpMyAdmin to make the change. If you’re not familiar with phpMyAdmin, I wouldnt change anything just to be safe. The table you’re looking for is wp-options.
This may not be the answer but its worth a look.
Forum: Fixing WordPress
In reply to: Two categories on one page – need help.Glad it worked.
Its possible to show comments on an archive(category) page. You’ll need to play around with the template tags to get things how you want them. Check this link in the codex:
https://codex.www.ads-software.com/Template_Tags#Comment_tags
First try placing
<?php comment_form(); ?>
right before the loop ends. That is, right before the<?php endwhile; wp_reset_postdata(); // End the loop ?>
line.The while(have_posts()) starts the loop and the endwhile; ends the loop.
Let me know if that works.
Forum: Fixing WordPress
In reply to: Two categories on one page – need help.Sorry… Try this and let me know how it goes.
Forum: Fixing WordPress
In reply to: How to change margins and fonts for a Page TemplateStyle.css is the right file, if thats the file styling everything else.
You can target this particular page template either by changing the ids and class in the page, then adding new styles to style.css or if your theme uses the body_class():
<body <?php body_class(); ?>>
in header.php, you can target the page by adding something like
.sales-page-template h1{}
in style.css.
Forum: Fixing WordPress
In reply to: Two categories on one page – need help.yep is sure does… i apologize. heres the corrected code:
<?php $my_query = new WP_Query('category_name=news,blog'); while ($my_query->have_posts()) : $my_query->the_post(); ?>
Forum: Fixing WordPress
In reply to: Two categories on one page – need help.Hmm… The reason the news is posting to that particular page is that you are using a category template “category-news” where news is actually the category. Try replacing
<? while(have_posts()) { the_post(); ?>
with
<?php $my_query = new WP_Query('category_name=news,blog'); while ($my_query->have_posts()) : $my_query->the_post();
Make sure that the categories are correct and use the category slug, not the category name.
Forum: Fixing WordPress
In reply to: jQuery conflicts newbieAwesome. Glad it worked.
Forum: Fixing WordPress
In reply to: ENTIRE BLOG DISAPPEAREDCongrats!
Forum: Fixing WordPress
In reply to: post formatting HELP!!So you want her posts to look like your design? You’ll need to edit the code of single.php in your themes folder. Single.php will control the layout of all posts. Look at the file and compare it to the HTML output you see in your browser. Use Firebug for Firefox if you arent already. This will allow you to make the connection between what PHP and WordPress tags are generating the date, title, and content. Title will be something like
<?php the_title(); ?>
maybe surrounded by a heading tag like
<h2><?php the_title(); ?></h2>
You can wrap your date in a something like
<div class="post-date"><?php the_date();?></div>
then style in CSS with something like.post-date{ background: #e9e9e9; font-color: #000; }
Something like that. Hope that gets going in the right direction. Links below.
https://codex.www.ads-software.com/Theme_Development#Single_Post_.28single.php.29
https://codex.www.ads-software.com/Function_Reference/the_dateForum: Fixing WordPress
In reply to: ENTIRE BLOG DISAPPEAREDCheck your database to see if the data is still there. If it is, then you can likely get your site back. Sheesh… what setting did you change? Ill wanna stay away from that one.