Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter blurryfish

    (@photonatic)

    Hi again.

    My permalink is set to Post Name.

    I’ve put some die / print / print_r here and there. With print_r on the $post object I get these values:

    WP_Post Object
    (
    [ID] => 225
    [post_author] => 1
    [post_date] => 2017-03-09 01:12:53
    [post_date_gmt] => 2017-03-08 23:12:53
    [post_content] =>
    [post_title] => Email Confirm
    [post_excerpt] =>
    [post_status] => publish
    [comment_status] => closed
    [ping_status] => closed
    [post_password] =>
    [post_name] => ura-email-confirm
    [to_ping] =>
    [pinged] =>
    [post_modified] => 2017-03-11 14:08:09
    [post_modified_gmt] => 2017-03-11 12:08:09
    [post_content_filtered] =>
    [post_parent] => 0
    [guid] => https://www.[subdomain].[domain].[topdomain]/ura-email-confirm/
    [menu_order] => 0
    [post_type] => page
    [post_mime_type] =>
    [comment_count] => 0
    [filter] => raw
    [ura_post_type] =>
    )

    It looks to me ura_post_type is empty in this case so nothing is assigned to $post_type.

    Then I added print (“URA_THEME_URL: ” . URA_THEME_URL ); a bit further down and got this back:

    URA_THEME_URL: /home/[username]/[subdomain].[domain].[topdomain]/wp-content/plugins/user-registration-aide/themes/

    Since $post_type is empty then this is never true:

    if ( $post_type == ‘ura-page’ )

    Maybe this could have picked up

    if( empty( $template ) ){

    …but I added this line after the if:

    else { print ( “empty template” ); }

    … which printed out the empty template text.

    Is this fully expected?

    Thread Starter blurryfish

    (@photonatic)

    A simple delete plugin and re-install did not solve the problem either.

Viewing 2 replies - 16 through 17 (of 17 total)