erikhgm
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Exclude category from first post on homepageI actually got this to work now with this new code
https://pastebin.com/gpSrs2HuIt basically just changes the this part of the code if the post is in category 35 which is where I put the posts that I want to have a large thumbnail.
from:
<?php the_post_thumbnail(‘thumbnail’); ?>to:
<?php the_post_thumbnail(‘large’); ?>I am thinking though there must be a better way to do this with less code. This way generates lots of extra code.
Forum: Themes and Templates
In reply to: Problem with RSS thumbnail codeHowever I guess nowadays the meta tags are’nt as important for seo traffic right?
Forum: Themes and Templates
In reply to: Problem with RSS thumbnail codeI just tried changing the code but its the excerpt still shows up.
Could I just remove the line?
Forum: Themes and Templates
In reply to: Problem with RSS thumbnail codeSo would this code be the best solution for this
<meta name=”description” content=”<?php strip_tags( the_excerpt_rss() ); ?>” />
Forum: Themes and Templates
In reply to: Problem with RSS thumbnail codeYes its https://www.matvarupriser.se
Forum: Themes and Templates
In reply to: Problem with RSS thumbnail codeHowever it displays the excerpt on top of the page when viewing post with an thumbnail attached to it.
Forum: Themes and Templates
In reply to: Problem with RSS thumbnail codeI just found out that there is a line of code in the header which includes ‘the_excerpt_rss’
Forum: Themes and Templates
In reply to: Problem with RSS thumbnail codeI am using the magazine style Mimbo theme.
When I switch to twenty eleven yes the problem goes away.
Forum: Plugins
In reply to: [W3 Total Cache] Mfunc does not work with slideshowI removed the php tags and changed to mfunc and now the code looks like this: https://pastebin.com/kL96tswa
and I have aslo tried this code: https://pastebin.com/pXCSg5yt
I get this error code now its driving me crazy now nothing seems to be working
Unable to execute code: $args = array( ‘numberposts’ => 1, ‘orderby’=> ‘rand’, ‘category’ => 34 ); $rand_posts = get_posts( $args ); foreach( $rand_posts as
Forum: Themes and Templates
In reply to: Stretch thumbnail to exact dimensionsWell that would also stop resizing the thumbnail when either one of the width or height measure are fulfilled.
However i solved it by adding a css class to the post thumbnail a href tag and resize with css.
Forum: Plugins
In reply to: Post divider in the loopI have a magazine website and my idea is to break the monotionius vertical post feed and put in a row of horizontal posts with their thumbnails to make the post feed more visual attractive for the visitor.
Forum: Plugins
In reply to: Post divider in the loopThats works yes! Ironically I just realized that my question was a little bit of target. What I really wanted to fix was so that the posts that has a thumbnail image, align next to eachother 3 in one row and positioned after the fifth post. Posts without thumbnail image should just continue in the normal flow.
Can we just change the if statement?
Forum: Plugins
In reply to: Post divider in the loopDo you know why that is?
Forum: Plugins
In reply to: Post divider in the loopUnfortunately that did not do it either, I get a different error saying:
Parse error: syntax error, unexpected T_ELSE in …/index.php on line 79
Forum: Plugins
In reply to: Post divider in the loopI get this error message when using the code:
Parse error: syntax error, unexpected ‘<‘ in …/index.php on line 55