Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter jeffbarclay

    (@jeffbarclay)

    Thanks for the fix!

    That works perfect. I was test several different examples on the same page, but don’t need that as a final result. This will work fine… Great plugin and tons of great features not to mention the tech support!!!

    As an FYI I did move it to the top and it renders as desired, but the rest of the examples fail with the same error code… Not an issue for me!

    Thanks again for the great troubleshooting!

    Thread Starter jeffbarclay

    (@jeffbarclay)

    Ok, I was using the “text” tab so thats out, and “Personal” is a category with slug that I have in the media section. strange that its showing in the error?

    Here is my page, its a bunch of test shortcode to see what gets displayed. All work except the one we are working with. I’m excluding the “selfies” but thats not working, I have tried others as well. even a non-existent one should still show all the valid ones I would think.

    I had a few of the same slug names in both category and attachment_catagory, so I cleaned those up to see if that was the conflict. same “Personal” error!

    here is my test page:

    Firehouse Selfies:
    [mla_gallery attachment_category=selfies columns=5 rows=10]

    Personal Category:
    [mla_gallery attachment_category=personal]

    mime:
    [mla_gallery post_type=post post_status=publish post_mime_type=all]
    pdf (cat)
    [mla_gallery post_mime_type=all category=pdf]
    pdf (alt cat)
    [mla_gallery post_mime_type=all attachment_category=pdf]
    pdf/icon
    [mla_gallery post_parent=all post_mime_type=application/pdf size=icon link=file]

    [mla_gallery post_parent=all post_mime_type=application/pdf size=icon mla_caption=”{+title+}”]

    PDF:
    [mla_gallery post_parent=all post_mime_type=application/pdf]

    RTF:
    [mla_gallery post_parent=all post_mime_type=application/rtf size=icon mla_caption=”{+title+}”]

    ALL:
    [mla_gallery post_parent=all post_mime_type=all size=icon mla_caption=”{+title+}”]

    [mla_gallery]
    tax_query=”array(
    array(
    ‘taxonomy’=>’attachment_category’,
    ‘field’=>’slug’,
    ‘terms’=> array(‘selfies’),
    ‘operator’ => ‘NOT IN’,
    ‘include_children’ => false
    ),
    )”
    post_mime_type=all
    size=icon
    link=file
    mla_caption=”{+title+}”
    [/mla_gallery]

    • This reply was modified 8 years, 2 months ago by jeffbarclay.
    • This reply was modified 8 years, 2 months ago by jeffbarclay.
    Thread Starter jeffbarclay

    (@jeffbarclay)

    Thanks David

    both examples produce the same error:

    ERROR: Invalid mla_gallery tax_query = ‘Personal’

    I’m also not sure what the ‘some-term’ should be? Is this just a name for the array?:
    ‘terms’=> array(‘some-term’),

    • This reply was modified 8 years, 2 months ago by jeffbarclay.
    • This reply was modified 8 years, 2 months ago by jeffbarclay.

    looking for the same answer but mine is simply exclude one:
    [mla_gallery post_parent=all post_mime_type=all size=icon mla_caption=”{+title+}”]

    Thread Starter jeffbarclay

    (@jeffbarclay)

    wow – thanks so much that worked!

    Thread Starter jeffbarclay

    (@jeffbarclay)

    Now the error is:
    Fatal error: Call to undefined function apply_filters() in /home/miemss5/public_html/wp-includes/pluggable.php on line 117

    here is line 117-125:

    $user_id = apply_filters( 'determine_current_user', false );
    	if ( ! $user_id ) {
    		wp_set_current_user( 0 );
    		return false;
    	}
    
    	wp_set_current_user( $user_id );
    }
    endif;

    Thread Starter jeffbarclay

    (@jeffbarclay)

    here is the error now:

    Warning: include_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in /home/miemss5/public_html/wp-content/uploads/articulate_uploads/TestCert/TestCert/story_content/wp_user.php on line 2
    
    Warning: include_once(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/miemss5/public_html/wp-content/uploads/articulate_uploads/TestCert/TestCert/story_content/wp_user.php on line 2
    
    Fatal error: Call to undefined function get_currentuserinfo() in /home/miemss5/public_html/wp-content/uploads/articulate_uploads/TestCert/TestCert/story_content/wp_user.php on line 4

    here is the wp_user.php :

    <?php
    	include_once ( ABSPATH . "wp-includes/pluggable.php" );
    	  global $current_user;
          get_currentuserinfo();
    
          echo 'Username: ' . $current_user->user_login . "\n";
          echo 'User email: ' . $current_user->user_email . "\n";
          echo 'User level: ' . $current_user->user_level . "\n";
          echo 'User first name: ' . $current_user->user_firstname . "\n";
          echo 'User last name: ' . $current_user->user_lastname . "\n";
          echo 'User display name: ' . $current_user->display_name . "\n";
          echo 'User ID: ' . $current_user->ID . "\n";
    ?>
    Thread Starter jeffbarclay

    (@jeffbarclay)

    from within a lightbox i’m running a storyboard test, the test results are sent to a wp_user.php page. I can display test results but I also need to display the logged in user in wp. So like I stated above, I tried the example code (same as your reply) and received the error I posted in the original question.

    Thread Starter jeffbarclay

    (@jeffbarclay)

    thanks but you just posted what I did – and it doesn’t work ! i listed the error code that resulted from the above example.

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