Tagged Questions
1
vote
1answer
138 views
Using Conditional Statement in functions.php
I've got this code below in my functions.php and I'd like to add two filters with conditional statement not to effect every query_posts. Something like this
if(!is_admin() && ...
0
votes
1answer
102 views
Exclude custom function content from certain pages
I have added a small custom function to display a little author bio blurb at the bottom of each blog entry in my functions.php file inside the current theme that I am using. So far so good, it is ...
0
votes
1answer
120 views
How do I assign this filter to a variable? (Appending php & markup to the_content)
===I HAVE SOMETHING THAT WORKS NOW, JUST NOT CORRECTLY. PLEASE READ THE WHOLE POST, I AM GOING TO LEAVE IT ALL UP HERE BECAUSE OTHERS MAY BE ABLE TO BENEFIT FROM ME BUMBLING THROUGH THIS PROCESS!!
I ...
1
vote
2answers
62 views
Same Conditionals Not Working on Two Different Hooks
Everyone!
I am new to WP and trying to build a plugin. I have the following codes working properly:
add_filter('the_content', 'say_hello');
function say_hello($content){
if(is_single() || ...