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

jubot on "How to define a custom field by using two functions?"

Hi. I'm trying to automatically add a custom field to post. The custom field contains the url to the 'medium' thumbnail. I wan't to do this without defining a featured image and instead I want to use...

View Article


girll on "add_filter in wordpress oop plugin"

HI all. I am writing a wordpress plugin with OOP techniques. I need to add filter.I write it so: add_filter('the_content', array($myObject, 'display_products')); But in that case it starts to load page...

View Article


stitchmedia on "Set all publish dates to an offset value & have a movable...

Here's my proposed hack: We are setting up WP for a television series and we need events to happen on a FICTIONAL timeline - ie Character A posts two days after Ep 1 airs, Character B responds to...

View Article

vny009 on "Any plugin for register/login that uses database to store users"

Hello, I am searching a registration/login plugin that uses databases to registered users. Please share if anyone know!

View Article

freakable on "How to change this sql querry"

# First: DELETE FROM wp_postmeta WHERE post_id IN ( SELECT id FROM wp_posts WHERE post_type = 'attachment' ) ; # Second: DELETE FROM wp_posts WHERE post_type = 'attachment' That sql querry delete every...

View Article


chaos67731 on "Make multiple pages and set template/content on theme...

OK, I have two different code and I need them mixed together more or less. I want to be able to make 5 or 6 pages on a site when my theme is activated. When it makes the pages, I want it to set the...

View Article

maximumsavage on "Ajax Event Calendar - Remove PHP call"

Hello, http://www.narwhalnation.com I'm looking to remove the PHP call for the month and year in the AEC Widget: <span class="fc-header-title"> <h2> August 2013</h2></span> I'm...

View Article

tunescool on "Move Button In Posting Page And Add Return Function"

i use this to add a button in my posting page // add more buttons to the html editor function wptit_add_quicktags() { ?> <script type="text/javascript"> QTags.addButton( 'wptit_pre',...

View Article


beth1l1 on "How do you allow users to change the displayed time based on...

How do you allow the timezone displayed to be changed by the user or automatically based on the users timezone?

View Article


adamshriki on "popular posts this month not all time!"

Hi! We have this site: hafla on the left side is the popular posts by this code: $side_posts = new WP_query(); $side_posts->query(array('category__in'=>array(16), 'posts_per_page'=>3,...

View Article

Esikad on "Accessing full post for split content"

Dear All, I have written a plugin that builds a table of content from the data in my blog posts using content filters. Unfortunately, it does not play well with posts that are split in pages (using...

View Article

A31 on "Insert PDF File to Custom Database Table"

Hi all, Can anyone please advise me how I can insert a PDF file that a user selects from a html form into a custom table in the database? My code so far is: $OrderNumber= $_POST['txt_OrderNumber'];...

View Article

vmandesign on "WP_Query and paging problem"

So I've got this code placed on both my index.php page and my single.php page. The idea is to show the most recent four posts, excluding the current post being displayed. I'd also like the...

View Article


1234567890-asdfghjklzxcvbnm on "Dynamic Link shows on all pages, only want...

Hey everyone, posted this (for the second time) on the plugin thread. No responses. Hopefully you guys can be of some help. I'm working on a Genesis slider, and have 5 slides. One of those is supposed...

View Article

benvolio on "Wordpress Adminbar - wp-admin-bar-top-secondary"

I was just wondering how i could put the wp-admin-bar-top-secondary (account section of wp-adminbar) in my site header via header.php; is there any kind of php function to summon this in my header.php...

View Article


m0ngr31 on "update_post_meta() adding extra things"

I'm trying to use the update_post_meta function to update a post when a button is pushed so that it will change something in the meta data for the post. This is how I'm calling it:...

View Article

NVZ on "username_exists does not work with special chars"

Hi there, I may have stumbled upon a bug in the wordpress system. I have a script were i need to check the username before adding it with wp_insert_user. In wp_users i have a user with a user_login...

View Article


ayruncom on "about hacking my web site (ayrun.com)"

I am using a plugin wordfence which is excellent. Few days ago it warns me twice that my HTML, PHP,files ,core etc. has been severely changed; and they fixed eveything again. But, now when I check...

View Article

roylodder on "Custom field array"

Hi There! I’m working on an existing WordPress website. The site uses custom fields and one field is populated with an array. The custom field is called “items” and I need the value of the...

View Article

joshdd on "Template for child archive of custom post type"

Hello all :) So I have a custom post type used by a plugin - lets call it CAKE. In the archives, there are several sub sections of CAKE - lets call them CUSTARD, CREAM and SAUCE. And CUSTARD has 2 sub...

View Article
Browsing all 8245 articles
Browse latest View live