Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter nsitu

    (@nsitu)

    UPDATE:
    I’m going to try changing the links in the template to be javascript driven rather than direct. Hopefully the bots will now be less prone to wander. Here’s the change I’m making, more specifically. Instead of this:
    <a href="{{url}}">
    I’m using this:
    <a style="cursor: pointer;" onclick="window.location='{{url}}'; return false;">
    I’m going to monitor the results and will post again when I know more.

    Thread Starter nsitu

    (@nsitu)

    Okay, my bad: it looks like this behavior is by design. A file can only be attached to one post at a time. So, clicking “Insert into Post”, does not guarantee that a file will necessarily attach. If it’s already attached somewhere else, the existing attachment will hold.

    It makes me wonder if there’s an easier way to manage attachments. Is there some plugin that adds an “Attach To” button when editing media?

    Thread Starter nsitu

    (@nsitu)

    I decided to compare with another fresh WordPress install. The fresh copy does not have this issue.

    I discovered that the media library, when functioning properly, lists a hidden field with each item like this:
    <input type="hidden" name="attachments[10][post_parent]" id="attachments[10][post_parent]" value="163">

    This field is, for some reason, missing on the broken install.

    I also discovered that WordPress renders this hidden field in /wp-admin/includes/media.php, around line 1404:

    foreach ( $hidden_fields as $name => $value )
    		$item .= "\t<input type='hidden' name='$name' id='$name' value='" . esc_attr( $value ) . "' />\n";
    
    	if ( $post->post_parent < 1 && isset( $_REQUEST['post_id'] ) ) {
    		$parent = (int) $_REQUEST['post_id'];
    		$parent_name = "attachments[$attachment_id][post_parent]";
    		$item .= "\t<input type='hidden' name='$parent_name' id='$parent_name' value='$parent' />\n";
    	}
    
    	return $item;

    Still not sure where to go with this, though. Thanks for any further ideas.

    Thread Starter nsitu

    (@nsitu)

    Okay, good suggestion. I just tried it, and it makes no difference. I don’t think it’s a problem with the path, but rather the attachment. I want the file to show up in the Gallery tab once it’s inserted, and that’s not happening right now.

    Thread Starter nsitu

    (@nsitu)

    Upload path is ‘wp-content/uploads’

    We’ve recently had a situation where someone posted a job app, and got this message:

    Thank you for your application. While your application doesn’t fit our current requirements, please contact us directly to see if we have other positions available.

    From their view, we received the application, since it says “Thank you for your application”. However, the application does not appear in the Job Manager control panel. Do applications simply get deleted in case of this message?

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