Denis Leblanc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sticky posts showing in main feed as well as featured post sliderYou’ll probably have to go into your template file that handles the blog, probably the index.php file and exclude sticky posts from the query. This page in the codex should get you going: https://codex.www.ads-software.com/Class_Reference/WP_Query#Sticky_Post_Parameters
You should try posting your question in the ‘Plugins and Hacks’ section https://www.ads-software.com/support/forum/plugins-and-hacks.
Forum: Fixing WordPress
In reply to: Custom Post Type pagination issuesSee if this post helps: https://www.ads-software.com/support/topic/pagination-with-custom-post-type-listing?replies=45
Forum: Fixing WordPress
In reply to: Images are larger than max widthTry adding this to your css file:
.entry img {
max-width: 100%;
max-height: auto;
}It should resize your images to a max width of it’s container and scale the height proportionally.
Forum: Fixing WordPress
In reply to: Modifying the Loop for category templatesYou can duplicate the category.php file for each of the categories that you need to display the content differently for. Name each file as category-[slug].php and copy the loop from loop.php and hack them to your liking.
Forum: Fixing WordPress
In reply to: Find the content of the text widgetRight, I only read the top part. The content should be in the ‘wp_posts’ table in the database. If you have a lot of posts then it should be pretty hard to find.
Forum: Fixing WordPress
In reply to: Display content on a specific level category and on their parentDidn’t think of that one, yeah that should work. The only drawback is not having the editor to work with.
Forum: Fixing WordPress
In reply to: How can I run php files on a wordpress site?Gravity Forms is the absolute best form plugin. Seriously, check it out. It does anything you can possibly think of, even pay your bills. It’ll send and email, save to the database, you can even get it to post content, conditional form fields, conditional send to email addresses, etc.
Forum: Fixing WordPress
In reply to: Flash Banner on WordPressTry this:
<object data="/your-file-path/header.swf" type="application/x-shockwave-flash" width="" height=""> <param name="movie" value="header.swf"> <!-- If flash is not installed --> <p>You need Adobe Flash Player to view this content</p> </object>
Forum: Fixing WordPress
In reply to: Bulk edit – delete categories from many postsFrom the ‘Categories’ tab you can delete all the categories you want. Then from the ‘All Posts’ tab you can bulk re-assign the posts to other categories. As far as I know that’s the only solution.
Forum: Fixing WordPress
In reply to: Display content on a specific level category and on their parentCan you just add the content in a custom field for each post that needs it? Then you can just edit the template file to check if there’s a value for a specific CF key and pop it in where needed. If there’s no value then nothing shows up.
If the content is to be the same on each page then you can just create the content in static page, and on each of the pages that need that particular content to show up on just create a custom field called ‘content’ with a value of ‘true’. In you template file you can check if the meta key ‘content’ has a value of ‘true’ and if it does then you run a query to fetch the page_ID that contains the content.
Forum: Fixing WordPress
In reply to: New WP install with old install runningIf your hosting package allows it, I’d create a sub-domain and build it in there. Something like beta.domain.com. Once you’re finished you can migrate it to the main domain, and update the WordPress Address URL and the Site Address URL from the database.
Forum: Fixing WordPress
In reply to: Error log says "duplicate column name 'meta robots'"You’ll need to access your hosting control panel and look for ‘phpmyadmin’.
Forum: Fixing WordPress
In reply to: My blog Hello worldTo delete the ‘Hello World’ post you’ll need to remove it completely from the trash.
To remove the sidebar stuff you’ll need to edit the sidebar.php file in /wp-content/themes/your-theme/sidebar.php
Forum: Fixing WordPress
In reply to: Changed permalinks by mistakeWhat was the permalink structure before?