milatovskaja
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] problem with sticky blockmaybe you’re right
I will heed your adviceForum: Plugins
In reply to: [Contact Form 7] Problems with updatea lot of functions started working differently.
it broke everything that had been set up over the years.
For example, my switallert broke. file uploads broke because file type validation now works differently. before i could just turn off file type checking, now i can’t do thatForum: Plugins
In reply to: [Contact Form 7] contact form 7just add
placeholder "Your Name (required)"
Forum: Plugins
In reply to: [Contact Form 7] No more “message sent” notice with 5.4 ?yes notice was gone
also broke work with sweetalertForum: Everything else WordPress
In reply to: Change address wp-sitemap.xmlHello everyone again.
I’m trying to similarly redirect internal links:add_action( 'init', 'sitemap_posts' ); function sitemap_posts() { add_rewrite_rule( '^sitemap-posts\.xml$', 'index.php?sitemap=index', 'top' ); } add_filter( 'home_url', 'fix_sitemap_posts', 11, 2 ); function fix_sitemap_posts( $url, $path ) { if ( '/wp-sitemap-posts-post-1.xml' === $path ) { return str_replace( '/wp-sitemap-posts-post-1.xml', '/sitemap-posts.xml', $url ); } return $url; }
but this work not correct – makes a forwarding to itself.
i think problem inindex.php?sitemap=index
tell me how to make a redirect correctly?
regardsForum: Everything else WordPress
In reply to: How to hide a category from home page?This is not linking the Categories to the homepage – is_home() will always return true.
is_home() – checks if page with latest posts is shown, usually homepage of site.
anyway, thank you for your answers, but i’ll wait for someone more experienced.
Forum: Everything else WordPress
In reply to: How to hide a category from home page?Categories aren’t tied to a ‘homepage’.
Forum: Everything else WordPress
In reply to: How to hide a category from home page?Hello everyone.
I am using built-in WordPress function to create a sitemap.
But i ran into a problem….
…if i turn off posts on home page, then they disappear from sitemap too.
How to disable a category on homepage and save it to sitemap?
RegardsDoes anyone have any ideas?
If use this code:
add_filter ( 'pre_get_posts', 'exclude_category_home' ); function exclude_category_home ( $query ) { if ( $query->is_home ) { $query->set ( 'cat', '-рубрика' ); } return $query; }
categories from sitemap disappear too.
who knows how to disable a category on homepage, but show it in sitemap?
Regards.- This reply was modified 3 years, 11 months ago by milatovskaja.
Forum: Everything else WordPress
In reply to: How to hide a category from home page?explain more about url,
I want category to be on sitemap.Forum: Everything else WordPress
In reply to: Change address wp-sitemap.xmlSolved
add_action( 'init', 'url_sitemap' ); function url_sitemap() { add_rewrite_rule( '^sitemap\.xml$', 'index.php?sitemap=index', 'top' ); } add_filter( 'home_url', 'fix_url_sitemap', 11, 2 ); function fix_url_sitemap( $url, $path ) { if ( '/wp-sitemap.xml' === $path ) { return str_replace( '/wp-sitemap.xml', '/sitemap.xml', $url ); } return $url; }
Forum: Fixing WordPress
In reply to: Error PHP in wp-settings.phpWhat is the version of WordPress?
latest version 5.5.1
Forum: Fixing WordPress
In reply to: Error PHP in wp-settings.phpOn web srver i try change php 7.4, 7.2, 5.6.
Htaccess – defoult wordprees.
On local machine i installed xampp with php 7.4.
Everywhere there is a mistake, i don’t think that in all cases php is to blame.
Is it really only one i have such a problem?Forum: Fixing WordPress
In reply to: Error PHP in wp-settings.php…just checked on local server, same error. work on PHP7.4.11
https://i.ibb.co/bvMgrj6/image.png
if this is a problem in PHP, then what needs to be configured to solve it?
Any ideas?Forum: Fixing WordPress
In reply to: Error PHP in wp-settings.phpABSPATH is defined in the file wp-config.php. Can you post the last few lines of wp-config.php?
/* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' ); } /** Sets up WordPress vars and included files. */ require_once ABSPATH . 'wp-settings.php';
I also suggest to contact your hosting tech support and ask them to verify that PHP is operating correctly.
…suspect this is a problem in wordpress files.
I tried on different hosting, switched php versions 7.4 to 7.2, everywhere, when accessing wp-settings.hph from address bar – this error occurs. Haven’t tried on local machine only.
You not have this problem when open yousite.com/wp-settings.php?- This reply was modified 4 years, 1 month ago by milatovskaja.
- This reply was modified 4 years, 1 month ago by milatovskaja.