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

edow on "How to show the posts with the highest votes on homepage"

Hi, I use this code to show the post score which bcworkz made for me: <?php $counts = aigoo_get_score(); extract( $counts ); //restores compacted variables <span>+'.$score.'</span> ?>...

View Article


NatESkiN on "Passing a variable to a function that calls "wp_head""

Hello everyone, I'm working on a theme based on Twentyfourteen. I'm working on a hack to show a different background when a "featured post" in action "wp_head" declared my file functions.php. I've...

View Article


Baden on "String localization for variables"

In the following example string_1 and string_2 are used as the select value of an option element, however the display text is translated. $option_arr = array('string_1', 'string_1');...

View Article

WdPress on "wordpress print out post values before save to database"

How to display post values in custom post type page before store to db.

View Article

iWPer on "Dynamic select box in Contact Form 7"

Hi, I used Contact Form 7 - Dynamic Text Extension for a dynamic text-field, this works perfectly. I now want to add a dynamic select box to my form, which is not possible with the plugin. I added the...

View Article


ajcke on "wp_list_pages Output Parent and Child Pages"

I've been using the code below to auto display pages and child pages in a sidebar. Our site has a few parent pages and the rest of the pages are all nested within these. Right now the code displays the...

View Article

salihkulangara on "Filter Content for Attachment and Modify it"

I want to do this, just search the content for any attachments, and if attachments, usually the embedded images inside post, show the Custom size versions(that i have defined in functions.php) of those...

View Article

otti.steinhauer on "How to send a SMS"

Hello, at my plugin I'm already sending automatic mails with wp_mail() function. Now I want to send SMS and I don't know how to do that. I have got via a form the number of a mobile phone and I can...

View Article


patsfans on "Eliminating "Pages: " Prefix on pagination"

I'm trying to set up pagination buttons when I break up my posts with the <!--nextpage--> tag that say "CONTINUE" and "PREVIOUS", and am trying to eliminate the "Pages: " prefix that appears in...

View Article


Call_Me_Matthew on "How to assign a Page Template to certain URL Patterns?"

Is there a way to set up a page template that assigns itself to pages of a particular url structure? For example, say you have these urls: http://www.mysite.com/beachhouse/snippet...

View Article

learnandcode on "Redirect after form submission"

Hello. I have widget that is prepared for making appointment and I need to redirect to another site after submission. But as I never dealt with WordPress nor php I have big trouble with determine what...

View Article

jeriksson on "Get post title as the_post_thumbnail alt tag, how?"

Hi, I'm a novice at this, i can't figure out how to get the post title as the post_thumbnail alt tag, i've read a couple of threads and tried using this code but it won't work, i'm suspecting i've...

View Article

angela.marie.giaco@gmail.com on "Social Media Pop Up (Preferably without...

Here is what I am trying to do: When a customer gets to a specific page, I would like a popup to appear on page load. Within the popup I would like to display an area to share a website on Facebook...

View Article


brisimmons105 on "link to latest post in category on a category list?"

I've got a code that currently lists out all my categories, in alphabetical order, with anchors to each letter. When I click on one of the categories, it links me to the category archives page by...

View Article

joaoimai on "Hide a specific category from page navigation"

Hello. I have a category that I wanted parallel from the main blog. So I didn't want it to appear on the page navigation buttons. Only when it is at the category page. Anyone know the easiest to do it?...

View Article


peter-hamilton on "Plugin jQuery and CSS Overload?"

Good topic, I am also wondering the same. Running BBpress and about 6 plugins and site is very slow. Google pagespeed gives me 64 points and lots of issues. Looking forward to an answer. P.H.

View Article

asidre on "WP_Query ignoring the posts_per_page argument."

I have a custom post type which i want to use pagination hence i have the code set up like below: global $wp_query; $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array(...

View Article


Luke Janicke on "How to customize "Insert Media" output?"

I want my editors to be able to use the default "Insert Media" feature but I want to customize the output. By default, "Insert Media" produces something like this: [caption id="attachment_414"...

View Article

totland on "How to duplicate Vimeo shortcode"

I use the standard Vimeo shortcode for embedding Vimeo videos (http://en.support.wordpress.com/videos/vimeo/), and really like the responsive markup it produces. I also have my own video player that I...

View Article

shazdeh on "urlencode_deep function and wrong URL"

This seems like a bug with urlencode_deep function: print_r( urlencode_deep( array( 'width' => '80%' ) ) ); The result of that is: Array ( [width] => 80%25 ) Notice the extra 25 in the parameter....

View Article
Browsing all 8245 articles
Browse latest View live