How to change permalink to include custom post type
How to change permalink to include custom post type
How to change permalink to include custom post type
I have changed the do_action() for a apply_filter(). This worked as follows: // Filter save settings $settings = apply_filters( ‘gtp_theme_settings_tab_save’, $settings, $tab, $_POST ); $updated = update_option( ‘gtp_theme_settings’, $settings ); And then my add_filter in plugin file looks like: function ac_theme_settings_tab_save( $settings, $tab, $postdata ) { if( $tab == ‘adcalls’ ) { $settings[‘gtp_adcalls_domain_id’] = $postdata[‘gtp_adcalls_domain_id’]; … Read more
WordPress page and plugin list using sql query
Programatically update non-wordpress repository hosted (self-hosted) plugins
You need to add overflow: hidden; to your CSS for #wpadminbar. Add this to your CSS: #wpadminbar { overflow: hidden; }
wp_editor content in plugin options page
When you look at the template hierarchy, you can see that there are archive templates. There’s also archive-{$post_type}.php And as attachments of any kind are just a post type of the name attachment, you could in theory add a template with the filename of archive-attachment.php to your theme and have a n archive of all … Read more
Yes, multisite is not what you need here. I would try to map all subdomains on the same wordpress install, and then customize the template via the current URL. In the wp-config.php you then use the current URL as base url: define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); You can also do different themes … Read more
Use Cornerstone Plugin outside of WordPress Dashboard
You’re right in that this does not have to do with permissions. You will run into it depending on a particular server configuration. To ensure that you don’t have to deal with it on an ongoing basis, you will want to add the FTP credentials to wp-config.php like so: define( ‘FTP_USER’, ‘username’ ); define( ‘FTP_PASS’, … Read more