LouisIsMyDog
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Editing Media Library Grid View => Attachment DetailsI figured it out. Actually, there is an action that controls this. You just have to remove the current action attached to ‘print_media_templates’. Copy what wp has under print_media_templates.php as their backbone.js template and add your own template to your functions.php and rehook it to ‘print_media_templates’. Then it’s a done deal. Thanks for the replay though!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Undefined variable $query_join bug and fixI had the same problem. I used your line to add in the quick fix and it worked for me. Thanks
Forum: Plugins
In reply to: [Media Library Assistant] Need help creating pagination for attachment page!In the Media/Assistant Bulk Edit area, the label above says Tags.
You can communicate with me through my email: [email protected].
Forum: Plugins
In reply to: [Media Library Assistant] Need help creating pagination for attachment page!Thanks again for your help ??
Forum: Plugins
In reply to: [Media Library Assistant] Need help creating pagination for attachment page!You can find the contents to my child theme here Drop Box. The attachment page template file is single-attachment.php. The theme that I am using is Virtue Premium and the contents to that are here Virtue Premium.
Thanks again for all your help.
Forum: Plugins
In reply to: [Media Library Assistant] Need help creating pagination for attachment page!I need something that gets the current attachment-page’s post_id (something like
wp_attachment_is_image($post->id
) and then from there my code should be able to see what tag is associated with that post_id (something like$posttags = get_the_tags();
) after I need to be able to get all other href links to all other post_ids attached to the same tag to create the pagination.Does this make sense. I know you have already built this into your MLA Gallery plugin. I just do not know how to incorporate this to my webpage.
Forum: Plugins
In reply to: [Media Library Assistant] Need help creating pagination for attachment page!I have been working on this for a while now and I still cannot seem to figure it even while trying to dissect the shortcodes in your “twentytwelve-mla” directory.
I am still trying to add a pagination “Next and Previous” for all items in the gallery within the mla gallery tag. The only difference is that this is for the attachment page of the posts.
I have spent countless hours on this small code.
Thanks in advance.
Forum: Plugins
In reply to: [Media Library Assistant] Need help creating pagination for attachment page!Sorry for the duplicate post, there was some sort of error while posting.
Anyway, I know I need to edit the the themes template file. That is no problem. I already created a new single-attachment.php in a child theme. The problem is that when you go into the mysql database I cannot find the column/row where the tag attribute has been added from the Media Library Bulk Editor. I do not know how the information is stored therefore I cannot write the right php code. I do not know how your code saves the images on the database. I say this because under taxonomy => post_tag => “my tags” do not show has I have any posts attached to the tags I created though the MLA Bulk Editor. Which means the attributes are stored elsewhere.
This code spits out “No”.
<?php if (taxonomy_exists('my_taxonomy')) { print "YES"; } else { print 'NO'; } ?>
Let me know if you understand what I am looking for.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Display Post attachment imageI figured it out. You just need to create a function like this and add it to your functions.php in your child theme.
function attachments_search_the_excerpt( $excerpt ) { if ( ! is_search() ) { return $excerpt; } $id = get_the_ID(); if ( ! $id ) { return $excerpt; } if(get_post_type($id) != 'attachment') { return $excerpt; } $caption = wptexturize( get_post($id)->post_excerpt ); $image_url = wp_get_attachment_image_src( $id , 'full' ); $thumbnailURL = $image_url[0]; $image = aq_resize($thumbnailURL, 260, false); if(empty($image)) { $image = $thumbnailURL; } // compile output with thumbnail image $output = "<div id='attachment_{$id}' class='wp-caption aligncenter' >"; $output .= "<img src='".esc_url($image)."' class='iconhover' style='display:block;'>"; $output .= "<p class='wp-caption-text'>$caption</p>"; $output .= "</div>"; return $output; } // hook our function to the filter add_filter( 'the_excerpt', 'attachments_search_the_excerpt');
Then you have it ??
Forum: Plugins
In reply to: [Simple Subscribe] Add a new class!How I forgot, my webpage is https://beta.virtualspinzone.com/. The shortcode or subscribe form is on the front page ??
Forum: Plugins
In reply to: [Media Library Assistant] Image Ratio for mla_galleryThis is the shortcode I am using to produce (“https://capa.furniture/about-us/”).
[mla_gallery tag=benches mla_caption="{+template:({+description+}|{+caption+}|{+title+})+}" size=full mla_itemwidth="30.3%" order=ASC ]
Forum: Themes and Templates
In reply to: Kadence Virtue Premium Template EditThen I can just repost my same question in a general sense without pointing to theme specifics…. Then will I get support on this forum?
Forum: Themes and Templates
In reply to: Kadence Virtue Premium Template EditThat file I am editing is in the free version too. What is the difference if its paid or free? You are using the same functions, hooks, arrays etc… The code does not change. It is open source.
Forum: Hacks
In reply to: Function for adding image description and title in the caption.Hey bcworkz, if you could help me with this function then I’d be glad to transfer you $20 through paypal ??
Forum: Hacks
In reply to: Function for adding image description and title in the caption.I believe the image’s titles and descriptions could be found like this?
$attachment->post_title
$attachment->post_content