Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter Kassandra_P

    (@kassandra_p)

    Hi,
    I’ve installed and styled contact form 7 instead. Thanks anyway!

    Thread Starter Kassandra_P

    (@kassandra_p)

    Oops sorry my mistake! Didn’t realize you had to select “my description” in the language dropdown to activate it.

    Works brilliantly!

    Thread Starter Kassandra_P

    (@kassandra_p)

    Thanks Nick, no worries, your help is appreciated! I’ll try some variatioons and report back if it works.

    Thread Starter Kassandra_P

    (@kassandra_p)

    Hi Nick,

    First, thank you for your reply and for tackling this issue (and sorry for the delay in testing it out!). I am still looking for an answer, though mostly out of curiosity at this point. Still, I tried but could not get your solution to work, and I’m afraid I don’t understand the logic, which makes it hard to figure out where I could be going wrong.

    In detail (just in case I didn’t implement it correctly) I copied your functions as-is into my theme’s functions, and updated the image attachment template with your revised previous and next image links, which end up looking like this:
    <?php previous_image_link_by_slug( $label ); ?>
    <?php next_image_link_by_slug( $label , $max_pages ); ?>

    This resulted in no change as far as I could tell. Though very possibly I’ve done something wrong — does it matter that I have $label in the parentheses? I did try to change your functions to match.

    Thanks again for trying!

    Thread Starter Kassandra_P

    (@kassandra_p)

    Never mind, not sure what happened but I went back to the page after a while and the form had shown up.

    However, it interfered with the rest of the content on my page (things above got moved around/deleted), and I see that it allows for just one locked file… will keep an eye on your plugin to see how it develops (multiple locked files via shortcode would be a nice future feature 🙂 ).

    Thanks!

    Hi again,

    So sorry, there’s no issue. It was my mistake.

    I realized the posts (which were imported from someone’s previous blog) all contained a ‘more’ tag, which of course was interfering with the length (while being stripped from the default WordPress excerpt).

    Plugin works perfectly. Rated 5 stars 🙂

    Hi,

    Love your plugin overall, but am having the same issue.

    Perhaps it’s due to a conflict with the theme’s custom excerpt function (the theme I’m using is “Responsive”):

    function responsive_excerpt_length( $length ) {
    return 40;
    }

    add_filter( ‘excerpt_length’, ‘responsive_excerpt_length’ );

    Any ideas on how this could be fixed?

    Thread Starter Kassandra_P

    (@kassandra_p)

    Thanks bcworkz for your continued interest in this subject, and sorry for not replying to your original comment (I was away).

    In my case, the galleries contain hundreds of pictures that are continually being added to, so uploading the pictures in order isn’t a possibility.

    I do have access to the theme templates, and at some point when I have time will try your suggestion of creating custom image links. If I succeed, I’ll post the solution here (no promises though — like I said in the original post, php is not my thing!)

    Thanks again!

    Thread Starter Kassandra_P

    (@kassandra_p)

    Thank you I saw! The new feature is fantastic — and I’d just like to thank you again for making such a wonderful plugin! The more I use it, the more impressed I become with it!

    Thread Starter Kassandra_P

    (@kassandra_p)

    Forgot to mark as resolved 🙂

    Thread Starter Kassandra_P

    (@kassandra_p)

    Yes!!! That works perfectly!!! Thank you so so much, you went above and beyond. So sorry to interrupt your travels. You’re exceptionally generous with your time and help, and it’s greatly appreciated!!

    Thread Starter Kassandra_P

    (@kassandra_p)

    BTW I managed to figure out the pagination thanks to this thread, so this really is the last thing I have to solve, then I’m done!

    Thread Starter Kassandra_P

    (@kassandra_p)

    Oh I see!! Thanks.

    Thread Starter Kassandra_P

    (@kassandra_p)

    Thank you for this detailed answer!

    I’m either brave or foolish to be jumping into php… unfortunately I don’t have much of a choice in this case because I need to achieve the functionality of adding custom fields to the attachments, and there doesn’t seem to be a way to do this without delving into it. I’m pretty good with html and css though, and usually I can get by by picking apart existing php elements… didn’t expect this one to be quite so complicated!!

    OK, so here’s where I’m at. Since I’ve added the social links to the caption field, I don’t need this bit of code anymore, though it was interested to ponder over:

    <?php
    $data = get_metadata( 'post', get_the_ID() ); // get all the data
    $twitter = isset( $data['Twitter'] ) ? trim( $data['Twitter'] ) : '';
    $linkedin = isset( $data['LinkedIn'] ) ? trim( $data['LinkedIn'] ) : '';
    
    if ( ! empty( $twitter ) ) {
    $the_link = 'Twitter';
    }
    
    if ( ! empty( $linkedin ) ) {
    if ( ! empty( $the_link ) )
    $the_link .= ' | ';
    
    $the_link .= 'LinkedIn';
    }
    
    echo '<div class="social">' . $the_link . '</div>';
    ?>

    However, for anyone else who stumbles across this thread, it returns the error “Warning: trim() expects parameter 1 to be string, array given in …”

    Regarding just the simple calling of the custom fields, I decided to go with the second approach, since the rest of my image attachment page including thumbnail etc. is already set up as I want it.

    I therefore tried this piece of code, since I want to pull each of the custom fields individually (it’s easier for my poor brain to grasp it this way!):

    <?php $name = get_metadata( 'post', get_the_ID(), 'Name' );
    echo '<div class="name">' . $name . '</div>'; ?>

    This returns a value of “Array”

    However if I change it to:

    <?php $data = get_metadata( 'post', get_the_ID(), 'Name' );
    echo '<div class="name">' . $name . '</div>'; ?>

    I successfully call the slug! So it seems the slug has the value of name already, and I can’t use it for a custom field. Fine, I’ll rename it. But I decided to try the code out with another of my custom fields:

    <?php $data = get_metadata( ‘post’, get_the_ID(), ‘City’ );
    echo ‘<div class=”city”>’ . $city . ‘</div>’;
    ?>

    Unfortunately, this doesn’t call anything. BUT if I use the print_r () command on it (thanks to a friend who knows a bit more php than I do), it returns this:

    Array [0] => Seattle, WA

    There’s my city! So I think this must be close — any tweaks that might help get me the last bit there? The answer is possibly in one of the threads you referred me to, but I’m afraid I couldn’t make much sense of them…

    Thread Starter Kassandra_P

    (@kassandra_p)

    Thank you for your detailed reply — especially while you’re travelling!

    Here’s what I’ve got so far:

    1) For some reason, gallery-columns-4 doesn’t work — it still displays the default 3 columns. However, I’ve added the columns=”4″ to the gallery shortcodes themselves, so this is no longer an issue for me — just though you might want to know it doesn’t work. (So far no problems with the 4 columns, except that they don’t wrap very nicely when I resize the browser).

    2) I added <div class=’gallery-name’>[+title+]</div> to my page template, and it worked beautifully, thank you!!

    3) Since I’ve successfully outputted my gallery using the markup template processor, and definitely don’t want to mess with php more than I have to, I ended up placing all my links within a hrefs in the “caption” field — a bit messy, but solves the | issue since this can simply be deleted when uncessary.

    In short, I think I’m all sorted for this thread, thank you very much!
    On to the other.

Viewing 15 replies - 1 through 15 (of 18 total)