evandunn
Forum Replies Created
-
Thanks so much guys! That makes a ton of sense.
I’ve revised the code to the following after doing some more reading:
add_filter( 'the_content', 'emailleftappend'); function emailleftappend( $content ) { if(get_post_type( $_GET['post']) == 'email-template' ){ $findleft = '<img class="alignleft'; $replaceleft = '<img style="float: left; margin: 7px;" class=\"alignleft'; //$content = preg_replace($findleft, $replaceleft, $content); if ( is_single() && in_the_loop() && is_main_query() ) { $content = preg_replace($findleft, $replaceleft, $content); } } return $content; }
It outputs the body when I comment out $content = preg_replace($findleft, $replaceleft, $content); but when I have it like this, it still returns a blank body in it’s place. I can tell the content type filter is working now at least, because only the email-template pages are being effected.
Good to know!
Unfortunately, I’m still getting blank pages when I put this into my theme’s functions.php file. I get the header and footer, but no content. Not sure what I’m doing wrong.
Maybe I’m not pulling the_content() ‘s content into the function correctly?
- This reply was modified 6 years ago by evandunn.
Forum: Fixing WordPress
In reply to: Show less posts on front pageOn your front page template, you can add an iteration count.
Before the loop set:$i = 0;
Then inside the loop addif ($i <= [here add the number of posts]){ [your normal frontpage content] $i++; }
Forum: Plugins
In reply to: [News-Ticker] [Plugin: News-Ticker] Plugin Breaks PageI’ve decided to use another plugin. Thanks.
The solution was just to export the old counter into the new counter’s mysql field using the backend. Not a great solution, but I suppose it’s well enough.
Ahha!
The problem was that the interior div had been given a position:relative css setting. This meant that in IE7, the overflow:hidden was being ignored.
I’m sure there is a reason for the position to be relative if you are using it with an image,but since all I need is the title, I removed this style and it works perfectly.
Thank you so much for your reply. Amazing plugin!
Ok, so I’ve solved half the problem. Editing the scrollarama.php $pr_output on line 192 to include
cleartypeNoBg: true
fixed the background color problem, but in IE7, it’s still loading the entire list of titles visibly over my content before the fading clicks in. I’ve tried adding specified heights to the container divs and setting the overflow to hidden, but they still render on top.Forum: Plugins
In reply to: Auto-Login After Registration with Register Plus ReduxInteresting! I’ll definitely check this out. Thanks for the help.
Forum: Plugins
In reply to: Auto-Login After Registration with Register Plus ReduxWhat is wp_auto_login ? I’d really appreciate any guidance at all you could give me.
Thanks so much!
-EvanForum: Plugins
In reply to: Auto-Login After Registration with Register Plus ReduxI’m trying to get auto-login with Register Plus Redux, but no luck so far. All I can manage to do is generate php errors. ??
Forum: Plugins
In reply to: [Register Plus] [Plugin: Register Plus] Register and auto login?@daveredfern: I’m also trying to get the register redux to autologin after registration. Can you let us know how to do this?
Thanks so much!
Evan