Question
In a situation where one has 20 posts per page. I would like to get the current page number in order to make some nice page links at the bottom. How do you get the current page. I tried this <?php echo '(Page '.$page.' of '.$numpages.')'; ?> and it just sa
in progress 0
, Robin I Knight 12 years 0 Answer 80 views

Question
I would like to apply layout templates to my posts, just like I can do with pages. For example, I have a template-wide.php that does not include sidebars and adds a special "wide" class to the content div. At present, I can only use this template for pages. Is it possible to make it avail
in progress 0
Scott B 12 years 0 Answer 68 views

Question
I am writing the backend for my theme and have 4 custom post types. I have registered them all and now I am writing the metaboxes and handlers. My question is: in WordPress admin, is there a way of determining which custom post type you're editing? i.e. lets say I have a custom post type
in progress 0
Steve Clark 12 years 0 Answer 86 views

Question
What hook gets called when I edit or publish a custom post type of name 'episode gallery' ? I tried following but none worked. add_action('save_post', 'update_custom_ngg_table'); add_action('update_postmeta', 'update_custom_ngg_table'); add_action('publish_post', 'update_
0
vick 12 years 0 Answers 83 views