Can I manage content of my custom site using wordpress?

Use the Rest API to feed content into your site or otherwise interact with WordPress for storing content. http://v2.wp-api.org eventually all this will move into WP Core so V2 is a good place to start. Then set WP_USE_THEMES to false in your wp-config.php. That will allow you to use WP as your CMS but not … Read more

Show a different link based on IP

Yes, use a shortcode: function aslums_first_shortcode( $atts, $content ) { if ( IS INSIDE NETWORK? CHECK ) { return ‘inside the network’.$content; } return ‘outside the network’.$content; } add_shortcode( ‘aslums_shortcode’, ‘aslums_first_shortcode’ ); In your post content: You are: [aslums_shortcode] As an aside, could a user outside your network bypass verification if they knew what the … Read more

403 forbidden when changing settings on WP Multisite non-main sites

I had the same problem – I found the rules in Apache modsecurity that include a set of exclusions for WordPress didn’t cover /network/site-settings.php, so I could do everything except edit sites in my multisite setup. In the file /usr/share/modsecurity-crs/rules/REQUEST-903.9002-WORDPRESS-EXCLUSION-RULES.conf I added the following lines: SecRule REQUEST_FILENAME “@endsWith /wp-admin/network/site-settings.php” \ “id:9009999,\ phase:1,\ pass,\ t:none,\ nolog,\ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)