Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ok mea culpa, i just found these shortcodes inside the FAQ of the website, so maybe it can be useful to place these shortcodes directly inside PIE REGISTER admin page as a reminder…

    With the use of Shortcodes ([pie_register_login] & [pie_register_form]), Pie-Register allows you to place your registration forms anywhere you desire. With the use of shortcodes and built-in Widgets, Pie-Register allows you to place the login/registraion forms anywhere you want.

    edit : after looking inside plugin (v2 beta) i found all :

    add_shortcode( ‘pie_register_login‘, array($this,’showLoginForm’) );
    add_shortcode( ‘pie_register_form‘, array($this,’showForm’) );
    add_shortcode( ‘pie_register_profile‘, array($this,’showProfile’) );
    add_shortcode( ‘pie_register_forgot_password‘, array($this,’showForgotPasswordForm’) );

    Hi,

    I guess Rubiya is speaking about the V2 beta of PIE REGISTER.
    I have a system, where users will log from a lightbox like with three tabs to connect, register, then forgot password.

    So if i check in admin config, when you block the access to regular wp-admin?action=register etc… you have 3 dropdowns where to choose then wich page to use instead.

    And if you choose : PIE Register Login for example, etc… it says just bellow the field :

    This page must contain the Pie Register Login form short code.

    So what that sentence means exactly ?

    My problem is that when i create a custom form, i don’t think it updates the whole system. So if you request the WP register form inside a custom lightbox for example, you still have the default wordpress fields. I guess the whole function WP register fields should be updated so be call everywhere on custom template.

    Well so if the plugin is not doing this, then we need a shortcode I guess to call the modified WP register form where we want.

    And this looks to be possible from this sentence about shortcode in admin…

    Am I right ? ^^

    Thanks,
    Eldehel

    Hi Faison,

    First of all, thanks to share your code with us!
    I tried your fix, but for me it didn’t fix the problem at all, it’s not worst, just same as before, wich is : if i activate the manual sort, then if I update a post, then I have to activate, reactivate manual sort untill it works… and display all posts.

    So it’s ok when you dev but not ok for a client wich is not a besta tester…

    So the bug is still here, if this happens during updating a post, I’m thinking more about this function :

    //verify post is not a revision
    if ( !wp_is_post_revision( $post_id ) ) {

    I don’t know exactly, but i will try…

    How about your own plugin ? ^^

    Best regards,
    eldehel

    Thread Starter eldehel

    (@eldehel)

    Hi François,

    Yes I just tried this morning and I confirm this is working fine with WP 3.6 too.

    Thanks for the fix !
    Kind regards,
    Eldehel

    Thread Starter eldehel

    (@eldehel)

    Hi and thank you for your answer.

    In fact it was not a problem about how to retrieve my posts linked to section that creates your plugin. It was ‘simply’ to retrieve all posts assigned to one section (page), it was more easy than I though and no need to create a tricky code.

    So if someone needs to do the same and also wants to use the section function of this plugin, because it’s more and more common to load all posts sections on index then filtering them (isotope for example), with this code you can query all posts assigned to one section on any template page (in my case, this is index.php, but this can be page.php etc….) :

    <?php $my_query = new WP_Query('post_parent=820');
    while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?>
    
       <?php get_template_part( 'content', 'page' ); ?>
    
    <?php endwhile; ?>
    <?php wp_reset_postdata(); ?>

    Don’t forget to replace “820” with the page id wich is your section.
    In my case I get the template content-page.php but this can whatever you need.

    Very important if you make 6 queries for example (6 sections), don’t forget the

    <?php wp_reset_postdata(); ?>

    after your endwhile so to try as max to not use all the memory of your hosting and don’t forget to rename your query variable $my_query so to not duplicate it on the page.

Viewing 5 replies - 1 through 5 (of 5 total)