What does the Global Variable $s represent?

It’s not a global variable; in fact it’s not a variable at all. It’s just placeholder within the sprintf() function. Take a look at the sprintf PHP function documentation. In the example you cite, the author is using the ‘argument swapping’ placeholder syntax: %n$t where %n is the placeholder number that corresponds to the argument … Read more

Problems with my conditionals in single.php by category

Look at http://codex.wordpress.org/Function_Reference/in_category Example: <?php if ( in_category(‘rabbis-weekly-commentary’) ) : ?> <div id=”inner_header”> <img src=”http://www.ifcj.ca/ifcj_ca/images/elements/commentary_header.gif” border=”0″> … <?php elseif ( in_category(‘yaels-weekly-commentary’) ) : ?> <div id=”inner_header”> <img src=”http://www.ifcj.ca/ifcj_ca/images/elements/commentary_header.gif” border=”0″>

Single Post in Tab/Slider

If you are using jQuery UI Tabs you can use AJAX to load the content. There is an example on the plugin page. UI Tabs is always part of a WordPress installation and registered already as jquery-ui-tabs.

navigation link based on custom field

Check out get_next_post_sort and get_previous_post_sort filters. You can modify the ORDER BY clause to whatever you want (including ). For example, if you want to sort the ‘next post’ to be the post with the smallest adjacent post ID: function wp28041_get_next_post_sort($where){ return ‘ORDER BY ID ASC LIMIT 1’; } add_filter(‘get_next_post_sort’, ‘wp28041_get_next_post_sort’); You don’t have to … Read more

WordPress object for comments frame [closed]

So long as you’re in the loop, you can just use the standard template tags: <script type=”text/javascript” charset=”utf­8″> initFrame({ app_id: “”, object_id: <?php the_ID() ?>, object_title: “<?php the_title_attribute() ?>”, object_content: ‘<?php echo wp_trim_words( strip_shortcodes( striptags( get_the_content() ) ), 45 ) ?>’, object_url: “<?php the_permalink() ?>”, arguments_container: “comment-naqeshny”, width: 610 }); </script>