isaacalves
Forum Replies Created
-
I’m experiencing the exact same problem (except that I’m using a custom prefix other than “wp_”). Have just updated the Profile Builder plugin and the error persists.
I’ve tried checking the Email Confirmation to YES as Raymond suggested, but it didn’t change anything.
That is also an error I was experiencing on the stage version of the website, at some point: I didn’t fix it – or don’t remember fixing it, but that’s very unlikely – and for some reason I don’t get the error on the stage version anymore, only on the live version, which I have just deployed. A curious thing is that the ‘signups’ table doesn’t exist, neither on the live database nor on the stage one, but the error only happens on the live website.
Any help will be much appreciated,
CheersForum: Plugins
In reply to: [Multiple Roles] Assign Multiple roles upon registration?nice! I hope I get the chance/time to test this soon. Thank you
Forum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] Multiple roles to a userJustin, is there a way to set multiple roles on user registration (not on User Edit), as with the “User Role Editor” plugin?
Thank you
Forum: Plugins
In reply to: [Multiple Roles] Assign Multiple roles upon registration?Yes….It says on the description of this plug-in that ‘it is a good complement to other user plugins that don’t support multiple roles, such as Members.’
Members already has the capability to set multiple roles (but not upon registration). I thought this plugin would let me set multiple roles for users upon registration, but it doesn’t, actually the User Edit screen ends up with a duplicate checkbox list of roles.
User Role Editor plugin allows you to set multiple roles upon user registration, but it adds a lot of the same functionality of the Members plugin.
I’d like to add a “set multiple roles upon user registration” feature from scratch, any ideas?
Forum: Plugins
In reply to: [SMTP] hardcoded datahaha yes, i know. but that might be helpful to someone else (or myself)
Solved adding a featured image on the page.
The shortcode didn’t work for choosing a custom image for Facebook sharing. Apparently Facebook chooses the first image that appears on the document.
So I did the following: I placed the source of the image I want to share into an <img> on top of the body of the template page I’m targeting, with display: none;.
Then when I hit share, it could then retrieve the correct image and show it in the share preview. Same thing for Facebook’s Open Graph Object Debugger.
It worked!
But, actually no. When I indeed shared the post on my facebook wall., the chosen image was still the old one.
Any clue?
it wasn’t working because the UnderConstruction plugin was enabled.
Forum: Plugins
In reply to: [Open Graph Protocol Framework] sharing doesn't workHey itthinkx, thanks for answering. my problem was just a plug-in that was blocking the connection with facebook. this topic can be closed (even deleted as it’s useless)
Forum: Fixing WordPress
In reply to: Pagination link of custom post type goes to 404 error pageMy code in template-works.php:
get_home_pagination(); $args = array( 'post_type' => 'works', 'posts_per_page' => 10, 'paged' => $paged ); $wp_query = new WP_Query( $args ); if ( $wp_query->have_posts() ) : while ($wp_query->have_posts()) : $wp_query->the_post(); get_template_part( 'loop', 'works' ); endwhile; else : _e( 'Nothing here.' ); endif;
The same code (except for the post-type) is used in the template-blog.php, where pagination works correctly.
And then in functions.php:
function get_home_pagination() { global $paged, $wp_query, $wp; $args = wp_parse_args($wp->matched_query); if ( !empty ( $args['paged'] ) && 0 == $paged ) { $wp_query->set('paged', $args['paged']); $paged = $args['paged']; } }
Interestingly, if I type for example the URL “blog/page/456” , the blog template loads with the message “Nothing here”. No 404 error page.
On the other hand, the URL “works/page/2”, which I expect me to return some posts, ends on a 404 error page – why?
Forum: Plugins
In reply to: [Posts 2 Posts] Returning unrelated posts when connected to a draft post.I believe some people might have run through this problem, so I’ll try to be more concise:
I have two custom post types linked to each other: PROJECT and CLIENT.
In a single-PROJECT page, I get all other PROJECTS related to the CLIENT related to that PROJECT.
The CLIENTS template shows a list of all clients.
However, It shouldn’t show all CLIENTS there, so I set some CLIENTS as draft.
Hence the problem: in a single-PROJECT page related to a CLIENT which had been set as ‘draft’, I’ll get a bunch of projects unrelated to that client.
I guess I’ll have to create a custom metabox on the CLIENT post type where I’ll be able to set whether it should show up on the CLIENTS page or not, and un-mark them as draft.
Forum: Plugins
In reply to: [Posts 2 Posts] Returning unrelated posts when connected to a draft post.BTW, I just landed on this job where I have to deal with this. I didn’t implement the posts-to-posts plugin myself, neither have I any experience with this plug-in (great plug-in though). Guess it’s worth saying.
Forum: Plugins
In reply to: [Posts 2 Posts] Returning unrelated posts when connected to a draft post.So, that turnaround unfortunately haven’t solved my problem, because It’ll return me nothing when the related post is a draft. It should return me all ‘A’ posts related to the draft ‘B’ post (the letter refers to the custom post type, as I mentioned above)
I need a list of posts connected to a draft-post connected to a post – is that possible?
Any help will be greatly appreciated!
CheersForum: Plugins
In reply to: [Posts 2 Posts] Returning unrelated posts when connected to a draft post.Turns out that setting $wp_related to null slightly messed up things so I did this:
$client_is_published = $connected ? 1 : 0;
and used later while checking for posts:
<?php if ( $wp_related->have_posts() && $client_is_published) : ?>
Forum: Plugins
In reply to: [Posts 2 Posts] Returning unrelated posts when connected to a draft post.I solved it adding the following code after the get_related() query:
$wp_related = p2p_type( 'portfolio' )->get_related( get_queried_object() ); // check if connected post is a draft: $connected = get_posts( array( 'connected_type' => 'portfolio', 'connected_items' => get_queried_object_id() ) ); if (!$connected) $wp_related = null;
I won’t mark this topic as resolved as this is just a workaround for me. I’d still like to understand why I get all those unrelated posts.