Creating multiple category drop down
Change ‘id’ => ” in your $args to be unique values for each dropdown. If it’s empty it defaults to the value of name, which is cat in both instances.
Change ‘id’ => ” in your $args to be unique values for each dropdown. If it’s empty it defaults to the value of name, which is cat in both instances.
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
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
It seems to me that WordPress really wouldn’t be a suitable solution for this. I would look at other MySQL database management tools (Navicat, MyWebSQL, etc..).
To have full control over what is displayed on each page, you’d do best to create a Child Theme. Basically, you create a style.css file with specific comments at the top, so WordPress recognizes your files as a theme. Then, you copy any of WooCommerce’s files where you need customization, and place them into your … Read more
May be you can start from custom post types–> custom metas? then create custom roles. You will be able to limit the access by roles.
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
This is a very simple script that will split up the text of the box in different lines and fill them in in the title, excerpt and two custom fields. jQuery( function( $ ) { $( ‘#wpse18528_paste_box’ ).keyup( function() { var text = $( ‘#wpse18528_paste_box’ ).val(); var lines = text.split( /[\n\r]+/ ); $( ‘#title’ ).val( … Read more
Use shortcodes and put the logic into a separate plugin. This way, the forms aren’t bound to a special post type.
I’ve spent the last month and a half working around the clock on a fairly large scale project based on BuddyPress and WordPress. Very little of the functionality is actually contained in the theme itself. Most of it wound up being broken into at least six different plugins that each serve a slightly different yet … Read more