Thanks for your replies! I think I will include a basic documentation in the theme package to satisfy ThemeForest requirements and will add a huge info box at the top with link to my WordPress-based knowledge base with more advanced topics in it.
BTW I think that the offline documentation requirement should be cancelled. If someone works on a website he probably should be connected to the internet. Docs for WP themes can be pretty complex and it’s easier to maintain them online with a CMS.
Is it now allowed to upload a theme with documentation in online-only form? I will be uploading a theme with pretty complex documentation and maintaining all the files offline will be a huge pain in the ass. Last time I released a theme there was this requirement to include documentation in the theme package. I hope that this has changed now!
Right now the Extended Licence doesn’t grant you any redistribution rights. To include a plugin with a theme you have to make an arrangement with the plugin author outside the marketplaces.
Sorry, I assumed you were talking about WordPress. Don’t know about Magento, though, but if it is bundled with it’s own version of jQuery then I think the situation would be similar to WordPress.
Not really as you should never deregister WordPress’ jQuery.
Oh, I know what might be wrong. The ‘_wp_page_template’ returns the file name with ’.php’ at the end, e.g. ‘template-portfolio.php’, while the
get_template_part function accepts the template name without ’.php’ at the end. You will have to strip that part and you’ll be good to go.
Well, you get duplicated posts because you run the loop twice… You have pretty much answered your question. You just have to either modify the main query or run a custom one, like this:
$args = array( 'post_type' => 'page' ); $page_query = new WP_Query( $args ); if ( $page_query->have_posts() ) : while ( $page_query->have_posts() ) : $page_query->the_post(); $template = get_post_meta( $post->ID, '_wp_page_template', true ); // If the page doesn't have any template assigned - display the default page template if ( $template == 'default' ) $template = 'page.php'; get_template_part( $template ); endwhile; endif;
That’s pretty much it.