Missing argument 2

Hi just looking for help with this cant solve this Thanks Missing argument 2 for t2t_homepage_slide()XXXXXXX/index.php on line 41 and defined in/xxxxxxx/ten.php on line 94 <?php $slide1 = get_option($shortname.’_slide_1′); $slide2 = get_option($shortname.’_slide_2′); $slide3 = get_option($shortname.’_slide_3′); $slide4 = get_option($shortname.’_slide_4′); $slide5 = get_option($shortname.’_slide_5′); ?> <?php if($slide1 != ”) : ?> <?php t2t_homepage_slide($shortname.’_slide_1′); ?> <–line 41 <?php endif; … Read more

get_post_class() not working well

I am using the get_post_class to get the classes for my posts: post-75 post type-post status-publish format-standard category-uncategorized entry one-third teaser first The array returned however is not correct: array (size=9) 0 => string ‘post-21’ (length=7) 1 => string ‘post’ (length=4) 2 => string ‘type-post’ (length=9) 3 => string ‘status-publish’ (length=14) 4 => string ‘format-standard’ … Read more

Changed functions.php file and now site is blank [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 8 years ago. Improve this question I tried to change the functions.php CSS page, commenting out the original load fonts function and replacing it with my … Read more

WordPress: code structure

EDIT: I’ve posted them separately here wordpress.stackexchange.com/questions/137672/… and here wordpress.stackexchange.com/questions/137673/…. I’ll vote to delete this one. I’m working on a WordPress site, and I’m having a few questions about structuring my PHP code. Although I’ve have experience with structuring code in other frameworks, I’m wondering how you would do this in WordPress. I might have … Read more

Which action is triggered before final output?

http://codex.wordpress.org/Plugin_API/Action_Reference When I use add_action(‘init’,’myfunc’), at that moment the variables (is_404() or other) are not yet detected. When is best time to detect is_404(), $post->post_type, and all WordPress variables? Of course I want to trigger function(which sets php HEADERS) before output starts. EDIT: So far, i have found : 1) add_action(‘AFTER_THEME_SETUP’,’myfunc’) and add_action(‘wp’,’myfunc’) to work … Read more