Orabidoo
Forum Replies Created
-
So is this error with Ultimate Member or is it a settings issue?
It appears to be mod_security running on the new server. The administrator turned that off and now photos can be uploaded.
[161286946794.865004] [/wp-admin/admin-ajax.php] [1] Multipart: Content-Disposition header missing name field.
[161286946794.865004] [/wp-admin/admin-ajax.php] [1] Multipart: Invalid part header (colon missing): undefined[161286946794.865004] [/wp-admin/admin-ajax.php] [3] Multipart: Skipping invalid part (part name missing): (offset 0, length 0)
Yes, switched to the latest standard theme and got the same error.
Ok, I solved it like this:
$url = get_home_url( get_current_blog_id() ); $image1 = $url . '/wp-content/uploads/ultimatemember/' . um_user('ID') . '/' . um_user('image1');
Yes, it works now. I just had to enable search for that member catalog. Should’ve been on by default I think…
Strange that it appears to be gone altogether!
Forum: Fixing WordPress
In reply to: Get attachments from a specific custom post?Hasn’t anybody else ever done this?
Forum: Fixing WordPress
In reply to: Get attachments from a specific custom post?Yes, I thought so. But I can’t see any ID numbers, however I set the permalinks. For regular posts and pages, yes, but custom posts still have URLs like post-type/post-name.
This is how I pull images from any post or page. Right now I have a ‘hidden’ page tree where I put the slideshow images, but I’d rather use custom posts.
function get_slide_images($post, $size = 'full', $limit = '0', $offset = '0') { $images = get_children( array('post_parent' => $post, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') );
Forum: Fixing WordPress
In reply to: Can’t get the loop to work with WP_Query at all…Damn…I realized I hadn’t actually published the test post, only saved it as a draft. Everything works now!
Forum: Fixing WordPress
In reply to: next_posts_link doesn’t workUpdate: I removed <?php query_posts(‘posts_per_page=5’); ?> and now I can view different categories and single posts by clicking the links. But how can I set the loop to only display five posts?
Forum: Fixing WordPress
In reply to: bloginfo(‘template_directory’); only works in header.phpSomething weird is going on. I uploaded the file again and now everything works! Maybe I uploaded the file to the wrong directory by accident? I dunno.
Forum: Fixing WordPress
In reply to: bloginfo(‘template_directory’); only works in header.phpBut it’s working in header.php, which becomes part of index.php…right?
I guess I could use “wp-content/themes/theme_name/images” instead, since I know the name of the theme folder (I’m making this for a company, so no one else will use it).