gerardgmk
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] Mapping doesn't workHi,
I’m sorry if I didn’t understand you correctly.
Is not possible to keep unique IPs for each domain? Then, all domains will have the same IP, because the two of them must point WP’s IP?
So, if I do PING to the domains, the two domains will have the same IP?Thank you so much.
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] Mapping doesn't workThanks so much for your help.
I’ve resolved that access to “Blog 2” wasn’t possible until mapping the pluguin. Once mapped, it will be accesible.
I would like to ask another question, if possible:
I have two domains, with two different IPs that I’d like to keep due to SEO. If these domains are redirected to WPMU’s IPs, I will lose these domain’s IPs. Then, is there a way to keep these two IPs? This pluguin could map IPs? Now, it maps domains.
Thank you for all your help.
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] Mapping doesn't workHi,
I’m sorry but most probably I didn’t explain my problem correctly.
What we need:
2 blogs enganged with WPMU which each one of them will have its own domain.
What we have:
We have 2 blogs engaged on a WPMU and the Mapping Pluguin installed. And now, we are waiting to have the second domain because we only have 1 domain mapped in 1 blog.
What’s going on:
The domain mappead on the first blog works perfectly, the backend and the frontend. But now we can’t access from the superAdmin to the second blog. When we want to enter in the second blog, the menu always takes us to the first one. This also happens in the FrontEnd.
Conclusion:
We believe that is not possible to access to the second blog to finish the editing until que don’t put a second mapped domain inside this blog. For this reason,the pluguin always will redirect us to the first blog. Am I correct?
Is not possible to access to the second blog from the SuperAdmin?
Thanks.
Good morning,
First of all thanks for providing a forum for consultation devoloper. WordPress certainly do a great job each and every community.
Apologize if this post is not well placed, I hope to continue providing and clippings, I light the way to full development.
I commented, the problem I have is complicated even to understand, but I am more than blocked for days. (And if I do not get out of this hole with some solution, in my company seek to another :S)
General Information:
- I have made a “Custom Type” from 0, ie, I have a custom menu “Portfolio” with a “Form” made for me, this form stored properly in the “DB” even on a table by my </ li>
- This WP to have 3 blogs, elaborated in “Multisite”. Each of them have the form and store devidamente on their boards and in mine
- list “Posts” created in the “Portfolio”, it works but only displays the post created in each “Blog of multisite” </ li>
problem:
– The idea that the customer wants is that you will have access to Superadmin to manipulate each of the “Blogs” hanging from general this is done smoothly. The problem comes in the “Blog 1” if you create a portfolio and select posts of (the form) you want to be visible in the “Blog 2 and 3”, that when you save it stored in my table for the record.In the list of post of “blog 1”, will leave the set in the “Blog 1”, but if I go as a list of “Blog 2” posts should be created on the same blog and the other blogs that have selected in the form that they look (but these posts would not be editable in the “blog 2”, but on the blog of origin), ie would be listed only the same blog posts over the other.
Code so far: (list of blogs is possible as I have in an array)
add_action( 'pre_get_posts' ,'include_this_portfolio' ); function include_this_portfolio( $query ) { global $blog_id; //Si no es admin lista normal if( !is_admin() ) return $query; global $pagenow; //Si la pagina es edit, visualiza. Para filtrar que no se vea en otras paginas. if( 'edit.php' == $pagenow && ( get_query_var('post_type') && 'portfolio' == get_query_var('post_type') ) ){ $query->set( 'post__in', array(37) ); // array page ids Incluye } return $query; }Possible suggestion:
using,
switch_to_blog () -> changed our blog.
pre_get_posts -> We edit the list function
loop_start -> Browse all blogs
restore_current_blog () -> reset to current blog
add_filter (posts_results -> To view the entire list created.With all this I guess I should get it, but I’m lost.
Someone could help me with some light along the way, before I get fired.
Greetings and many thanks in advance. Sorry for the level of English.