How to disable accessing the custom post types from frontend via a link?
I think setting ‘publicly_queryable’ => false should solve your problem!
I think setting ‘publicly_queryable’ => false should solve your problem!
It certainly can be a theme related ‘problem’. To prevent unexpected problems in a theme, I frequently disable the admin bar while working on it. Look in functions.php (or similar) for code that looks like this and remove it: function my_function_admin_bar() { return false; } add_filter(‘show_admin_bar’, ‘my_function_admin_bar’);
You should be able to just add the filter inside of a conditional: <?php if ($_GET[‘hidetoolbar’]) { add_filter(‘show_admin_bar’, ‘__return_false’); } ?> or, since conditionally adding action handlers and filters is sometimes frowned upon, you could add your own function as a filter and then put your conditional inside that: <?php function my_manage_toolbar() { if ($_GET[‘hidetoolbar’]) … Read more
500 can be caused due to these -> Corrupted WP core files Corrupted .htaccess files Problematic plugins PHP memory limit issues Problematic theme As you already I have re-copied the .htaccess file and put in what WordPress recommended. I have stripped the plugins from the site through FTP. I think Upload fresh copy of wp-admin … Read more
You can use wp_redirect <?php $url=”something.com”; wp_redirect($url); exit; ?>
Well, with custom menu’s there can not be any conflicts because, If I’m not mistaking, menu that has a name of a deleted one, will be assigned a new ID and/or a slug so it would be different from the old one. The only thing I can think of is that there is a problem … Read more
Yes it is possible. I believe it is better if you put it in a conditional statement Check for featured image easy; Check for attached file with an image mime type using this and this; Check for any <img> tag in the post content (detail); If there is no image at all, then use a … Read more
There is a plugin named Change Request: It allows your customer to easily request “changes” or “alterations” to their WordPress site. The customer requests the change by placing a sticky note ontop of the website where they would like the change to appear. Once the customer requests a change, you get sent an email and … Read more
Maybe instead of using a tag, you could use get_post_meta() to retrieve a custom field? Set a meta field like featured and test to see if it’s set to one or something. $featured = get_post_meta($post->ID, ‘featured’, true); if ($featured === ‘yes’) echo ‘selected’; I hope I understood your question the right way and that this … Read more
Very difficult. The value is hard coded in wp-admin/js/post.js. See wp-admin/js/post.dev.js tagBox.init() for more readable code: $(this).suggest( ajaxurl + ‘?action=ajax-tag-search&tax=’ + tax, { delay: 500, minchars: 2, multiple: true, multipleSep: postL10n.comma + ‘ ‘ } ); The only solution I can see: Unregister the script with the handle ‘post’ (see wp-includes/script-loader.php) and register a custom … Read more