How to use a custom post type archive as front page?
I’d like to use a custom post type archive as a site’s front page, so that
I’d like to use a custom post type archive as a site’s front page, so that
After every instance of switch_to_blog() you should call restore_current_blog() to restore the current (actually, previous) blog.
I have registered a Custom Post Type and created a file called archive-myCPT.php and another one for single posts called single-myCPT.php.
I have a code that call get_the_title() and it works, but get_the_excerpt() return empty. How can i make it work?
Here is my excerpt code.
Is there a way to limit search to post titles? I know I can modify query.php core file but there must be a way to do it with hooks right?
One of the requests on themeforest is that themes are required to provide child theme support.
I’d like to cause a plugin to restrict its loading of CSS stylesheets and JavaScript JS files to only those pages for which they are needed.
I have a plugin and I would like to be able to run the post content through some filters before it is saved to the database. From looking at the plugin api, I see that two hooks that look like they might be helpful:
i’m probably breaking a few common sense rules here.