Raj
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Hi
Thank you very Much! It’s working awesome!
Regards,
JohnForum: Fixing WordPress
In reply to: Password protected page not workingThanks esmi
Using your first solution(deactivating all plugins), I have solved my password protect pages 404 redirection issue.
Thanks for your reminder at correct time.
Forum: Plugins
In reply to: [Recent News List] Can I use it as a plugin?Hi Rokixz
Please use below code in the template file for display the recent news.
<?php echo do_shortcode('[recent_news_updates count=5]'); ?>Thank you.
Forum: Fixing WordPress
In reply to: single_template filter is missing.Hi All, same problem.
Now I am using below code for load the template for my custom post type from my plugin folder.
function (My_Custom_Post_Type)_template($single_template) { global $post; if ($post->post_type == '{My_Custom_Post_Type}') { $single_template = dirname( __FILE__ ) . '/templates/{My_Custom_Post_Type}-template.php'; } return $single_template; } add_filter( "single_template", "{My_Custom_Post_Type}_template" );How could I replace the above “single_template” filter.
How could I have use this {$type}_template?
Please help!
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
Viewing 4 replies - 1 through 4 (of 4 total)