get_post_type on post.php

Why can’t you just globalize $post and then get the post type? e.g. <?php global $post; $post_type = get_post_type( $post->ID ); ?> In what context are you placing this code? In a metabox callback, or what? (Also: why are you using $_GET data?)

Show Sub pages excerpt+thumbnail

I recently wrote code that I just put into a new page template that does exactly this. The all you do is assign the parent pages that specific template (or any page you wish to have this functionality on) and then it’ll list it’s child pages with their featured images as thumbs. Getting a plugin … Read more

My Calendar Plugin – add output directly in template file

You can use the function do_shortcode in your template to output the content generated by the shortcode that My Calendar provides for listing events. For an example, to show a list of upcoming events use something like: <?php echo do_shortcode(‘[my_calendar_upcoming before=”3″ after=”3″ type=”event” fallback=”No events coming up!” category=”General” template=”{title} {date}” order=”asc” skip=”0″]’); ?> Take note … Read more

How to style the RSS wordpress?

You will need to add XSLT sheet to the RSS declaration. It will automatically beautify the RSS XML. You have a tutorial here Otherwise, just use “Advanced RSS” plugin, that allows you to configure the graphics with it ( via XSLT ). Plugin page here

Plugin for a text modal box [closed]

Fancybox works great for displaying content as well as images or videos. To display content, use something like: $.fancybox(‘<h1>My html content here</h1>’, { fancyOption: ‘fancyValue’ }); This functionality is documented on fancybox’s How To page. You can also use fancybox the same way you do for a link to an image, only for a link … Read more