New answers tagged

0

After hours of debugging, I can't say exactly what the problem was, however disabling all the plugin solved the issue. It wasn't one particular plugin, I then re-enabled all of them and everything was fine. Thank you for your interest!


0

Make sure you set your define( 'WP_DEBUG', false ); Else you may get 404. In my case I had that problem, when I inherited some project where there was many notices, and PHP warnings. This may be connected with the Ajax problem I had at that time. The temporary solution was to set debugging to false in my case.


0

You can use template_redirect to force all the http traffic going through WordPress to use https: function force_secure_navigation() { if ( ! is_ssl() ) : $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; wp_redirect( $url, 301 ); exit(); endif; } add_action( 'template_redirect', ...


1

WordPress doesn't support such versioning natively. While there is revisions functionality it is exclusively for keeping history of the changes. There is always only one instance of actual original post at any time and it can only be in one status at the time. So either it is published, or draft, or pending. There is no such thing as "published with update ...


0

Search the theme source-code for SITE_HOME_URL and try replacing it with WP_HOME or with the result of esc_url(home_url()). Locate THEME_PATH and replace it with the result of get_theme_root(). EDIT: In the case of expressduplication.co.uk/SITE_HOME_URLspecial-offers there is probably a wp_redirect() or wp_safe_redirect() that doesnt work because of the ...


0

<source src="<?php bloginfo('stylesheet_directory'); ?>/page-templates/yourfile.pdf" type="text/pdf" /> The bloginfo('stylesheet_directory') function will send you to your preset theme folder where all your files are... It's a best practice in linking your files from your theme directory folder... Be aware that scripts( jQuery, jQUI, etc) ...


0

Your paths should be: /wp-content/themes/gt3-wp-pure/page-templates/ ... instead of: public_html/wp-content/themes/gt3-wp-pure/page-templates/


0

You could just set custom permalinks for your categories with this plugin.


1

I believe there is no such "All Categories" archive page natively (because it would be just like the blog page - since every post have a category) . I recommend you to create a page template copying that code and modifying the query to include all posts and then creating a page with the slug 'category'. <?php /* * Template Name: Category */ ?> ...



Top 50 recent answers are included