Mr_Scientist
Forum Replies Created
-
Hi Joost,
I believe I’m having the same problem. I’m currently outputting Tweets in the right hand side bar of my site and I have the following code entered into the template –
<?php echo do_shortcode('[twitter-feed username="LisyWrites" num="3" img="no" liclass="tweets" followbutton="no" followlink="yes"]');?>I don’t suppose you’ve come across a solution yet?
Forum: Fixing WordPress
In reply to: Odd image cropping behaviourOk so after some more investigation I think I’ve got the same problem as these guys on here –
http://ww.wp.xz.cn/support/topic/image-crop-doesnt-work-at-exact-or-smaller-than-dimensions-of-thumbnail-setting?replies=8I have found that when cropping much larger sizes it will actually crop fine, but when it is very near or indeed the exact same crop size as my set dimension the cropping tool fails
Forum: Fixing WordPress
In reply to: Odd image cropping behaviourTo update –
I’ve reverted to the original Twentyeleven theme and deactivated all plugins and this problem still seems to be occurring. That makes me think that it could be a problem with WordPress itself?
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] 404 errors with /%postname%/ permalinksYes, it does only seem to occur when the permalinks are on. As for conflicts, this I’m unsure of, although I do know that the theme I’m developing on is available for translation.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] 404 errors with /%postname%/ permalinksHi all,
This is a problem that I’m still encountering.
The site I work on has a number of different parent > child categories across two languages. The URL structure I’m using is the ‘postname’ option. When categories are either edited or added the whole site gets 404s. At the moment I have to go to the permalinks setting screen and manually flush the rewrites rules. This isn’t too bad when it comes to myself doing it, but for the other users is more complicated.
Is there an elegant solution out there to this problem?
I’m using Polylang v 0.9.2
Forum: Themes and Templates
In reply to: Categories & separate sub category templatesI believe I have now solved this problem and the key lies here –
Place the following code within functions.php –
function is_subcategory (){ $cat = get_query_var('cat'); $category = get_category($cat); $category->parent; return ( $category->parent == '0' ) ? false : true; }And this code within the category.php template –
if ( is_subcategory() ) { // do required actions }The above code was from the WP Mayor website.
Adjust the statement to become an if/else inside the category.php page. If the category is within a sub-category output the loop to show the posts of that category, else output the subcategories themselves.