rvanbeek
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Allow users to create sub-domainsHi there,
I’m guessing that you have a multisite installation of WordPress?
If so the only user role capable of managing subdomains or sub-sites is the ‘Super Admin’.
This however allows a user to change the site settings and themes as well, this could be a potential risk.I would suggest creating a custom user role or upgrading a lower user role like ‘editor’.
You can easily achieve custom roles with the plugin ‘User Role Editor’ (https://nl.www.ads-software.com/plugins/user-role-editor/).
But only the pro version of this plugins allows for ‘Super Admin’ capabilities to be managed.I hope this works for you.
Forum: Fixing WordPress
In reply to: How can i change url structure of cpt like this?Hi there,
You can add ‘date_query’ to the WP_Query arguments:
$args = array( 'date_query' => array( array( 'year' => 2016, 'month' => 4, 'day' => 14, ), ), ); $query = new WP_Query( $args );
You can get the date by using
$date = explode( '-', $_REQUEST[ 'date' ] );
- This reply was modified 8 years, 4 months ago by rvanbeek.
Forum: Fixing WordPress
In reply to: Save post issue : I have to save 2 times for the changes to appearHi there,
Probably this happens when you create a new post (on your first save).
You can try to add $post_id to get_the_title():get_the_title( $post_id )
OR you can check the $_POST[ ‘post_title’ ] value instead, because this will contain the new title.
Forum: Networking WordPress
In reply to: Use another author.php if different subsite?Hi there,
Have you tried the function ‘get_template_part()’ (https://developer.www.ads-software.com/reference/functions/get_template_part/#more-information).
You can add this to your author.php template:
if( get_current_blog_id() == 1 ) { get_template_part('part','author-1'); }else{ get_template_part('part','author-2'); }
And create 2 separate template files ‘part-author-1.php’ and ‘part-author-2.php’ with a different version of the old ‘author.php’ code.
Forum: Fixing WordPress
In reply to: Permalinks %postname% strip and get the first wordHi there,
You can overwrite the auto-generated permalink on the edit page.
It’s underneath the page title, you can click the /title-of-this-post/ part and enter a different title. But I’m afraid you would have to do this for each page.I don’t think you should automate this. Because you’ll risk the possibility of auto-generating the same url twice. With that in mind the name should be unique or else it will auto append a number (site.com/title-1, site.com/title-2, etc.).
Forum: Fixing WordPress
In reply to: posts not showing on blogsHi there,
Have you tried the export function from the wp-admin menu?
You can easily export all of your blog items (even from a certain post type) from one installation and import it back into another using the import function.
You can find these options under ‘extra’ in the admin menu.When doing this you are probably asked to install the WordPress import plugin.
Forum: Fixing WordPress
In reply to: coding an array for my product pagesHi there,
Is this the exact PHP code snippet you used?
Because the arrows in the array say: “=>;” (the semicolon here is not valid PHP).Hope this helps, because the intended query seems to be correct.
Forum: Fixing WordPress
In reply to: delete cookie messageHi there,
Yes cookies need to be enabled to login (or register) to WordPress.
Users can still block third party cookies however.Forum: Fixing WordPress
In reply to: 404 error page not foundHi there,
Can you check if the page you are viewing is ‘published’?
When you are logged in as the admin you can view your pages regardless of the status.Forum: Fixing WordPress
In reply to: Domain Name Issues – SubdirectoryHi there,
I don’t think WordPress accepts uppercase url’s (it will always try to rewrite/sanitize the url to lowercase with dashes).
But I did find this plugin, perhaps you can use this (it looks pretty old, but it should still work): https://code.rawlinson.us/2012/01/force-wordpress-to-be-case-insensitive.html
Or if you really want uppercase url’s to work, this could also be done via .htaccess.
Forum: Fixing WordPress
In reply to: Adding a directory to use as a subsiteHi there,
I can’t quite answer your question, but did you post your question on the plugins’ forum as well?
https://codecanyon.net/item/drag-drop-email-builder-block-builder/15173826/supportForum: Fixing WordPress
In reply to: custom permalinks for specific categoryHi there,
Perhaps you can get this working using the ‘register_taxonomy’ function
(https://codex.www.ads-software.com/Function_Reference/register_taxonomy).It has a ‘rewrite’ argument where you can set ‘rewrite’ => array( ‘slug’ => ‘news-event/news’).
After changing this please go to settings > permalinks and click the save button, this flushes your current rules.I hope this helps.
Forum: Fixing WordPress
In reply to: Agregar cintillo en el headerHello there,
Is it possible to post your question in English?
I also found this Spanish WordPress forum: https://es.forums.wordpress.com/
Perhaps you can post your question there as well to get a faster answer.