Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Browsing all 8245 articles
Browse latest View live

Manan on "WordPress Custom Post Type Query"

I have this query for custom filed values (array based values): <?php // args $args = array( 'numberposts' => -1, 'post_type' => 'villa', 'meta_query' => array( 'relation' => 'AND',...

View Article


pixelkai on "Remove thumbnail dimensions from wp_caption"

i am using the following code in functions.php to get rid of the inline thumbnail dimensions generated by wordpress :) // Remove inline width and height added to images function...

View Article


adragt on "Nav Menu Item Linking to Today's Posts"

Would it be hard to have a link in the menu that always gathered the posts/events for the current date? So you could have a link that just said "Todays' Events" and it would just link to whatever...

View Article

clickmac on "Adding Drag and Drop for user uploads"

if their is any such plugin, i don't think it would be for free

View Article

frengo70 on "sticky post"

Hello. I have a little problem that the theme designer can't resolve. http://www.motoinlombardia.it/test2 In the middle of page there is a boxed named "areaonoff" that show the latest 5 news of the...

View Article


jellesn on "Contact Form 7 - jQuery checkbox"

$(document).ready(function() { //Hide the field initially $("#hide3").hide(); //Show the text field only when the third option is chosen - this doesn't $('#nieuwsbrief').change(function() { if...

View Article

Riccardo on "Force download not working as expected"

On PHP I usually I use these lines of code to force a download: header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream', true, 200); header('Content-Disposition:...

View Article

Hidoshi on "Echoing PHP inside of PHP with a link"

My familiarity with PHP is a little rusty right now. I'm trying this: <?php if ( has_post_thumbnail() ) { echo ("<div class="content-left" style="background-image:url( '" . $image_url[0] . "'...

View Article


hovida on "WP_Query - Meta with Arrays"

Hey guys, i try to work a little bit with meta_query on the pre_get_posts action and i have a little Problem. I have a custom Post-Type "news". On the edit-page i had added a custom meta box. Here the...

View Article


Fi Fi P on "JQuery Trouble"

I have been looking through a lot of documentation for this and really need a good clear tutorial if one exists. I have made the move from Dreamweaver to Wordpress and would like to implement some...

View Article

Piotr on "Dynamically adding forms and options"

I'm continuing my work on a Wordpress site that uses forum posts as content (more on this can be found here and here). After creating news section which takes first post of every topic and turns it...

View Article

Ale12 on "adding 'author_id' as part of register_taxonomy parameter- How to"

Hello, Hope you all well. I would like to have a list of taxonomies by author. I searched google and WordPress forum and There are couple answers which were closed. However, it does not fit blog's...

View Article

josh5723 on "Load New Header File On Certain Pages"

I've searched a bunch on this issue and have found many people giving different advice. I will only need 2 different header files for my site, the original and the new one I've since created (titled...

View Article


adeizasama on "Reassigning post thumbnail issue"

Hi, I'm working on a site and I'm trying to make it search through the images in the post to come up with a post thumbnail. The thing is, when you add the image to the post while creating it, it picks...

View Article

robthirlby on "format of user_email field"

Is there a legal hack to change the validation of user_email fields to allow say rob<rob@thirlby.net> or rob(rob@thirlby.net)? I'm unclear why the validation via is_email() is so restrictive...

View Article


kmadrid on "Media query question"

Wondering if there is any way I can use a media query to construct a new window or tab url if the user is accessing via mobile, versus a modal pop-up if the user is accessing via monitor. I've tried...

View Article

merlin867 on "Add a waiting time for admin"

Hello everyone, First, I would like to apologize for my english. I'm french so it's not so easy for me. For my problem I did a little research. but frankly I'm not sure what I'm looking for exactly !...

View Article


rapportdesign on "New User Notification Email Include Name"

I've modified the New User Notification Email to include address details entered during the shopping cart of WooCommerce, but I also need to include the first and last name. The following code will...

View Article

onyudo on "What's the best way to directly link to a post's file attachment?"

I have a portfolio where there are a series of thumbnails. Clicking on a thumbnail leads to the portfolio post's permalink (i.e., the_permalink(); ). Attached to each portfolio post is a PDF file. What...

View Article

armaniworld on "autofill form from another on my site"

I have two forms my site, one on the homepage and one on the "search results page" i am using a plugin to create the homepage form (wp custom fields search) and the search results form is done by...

View Article
Browsing all 8245 articles
Browse latest View live