The server-side programming language that the WordPress core, plugins and themes are written in.

learn more… | top users | synonyms (1)

0
votes
2answers
241 views

Get the alt text of the image in a array

I have a php code. That put the thumbs on the screen. I have this: <?php if (has_post_thumbnail()) : ?> <div class="image"> <?php $attachment_id = get_post_thumbnail_id(); ...
3
votes
0answers
13 views

Are WordPress Heartbeat API 'beats' staggered or do they occur simultaneously for all users?

The WordPress Heartbeat API uses admin-ajax.php to run AJAX calls. If User X leaves their browser open, many calls will be made to the server, with each call happening when there is a 'beat'. Now if ...
0
votes
2answers
70 views

Filter second dropdown (tax) based on first dropdown (cpt)

I've been googling and attempting this for over a week now with no success. I have a few custom post types (books, films, music etc), and a custom taxonomy (location). On my frontpage, I have two ...
0
votes
0answers
11 views

Ai1ec - Event Query

In regards to All-in-One Event Calendar: Custom Query - Getting each event Instance post (Here), how do you incorporate this code into my existing code? I'm was calling queries straight from the ...
2
votes
2answers
316 views

multiple files in wordpress plugin

i'm trying to write a plugin with multi files, i'm sure i did it before without a problem but now i have the problem in the subject. in the main plugin file i included a file name - ydp-includes.php, ...
0
votes
1answer
14 views

Auto delete Wordpress users according to time

In my wordpress site spam users are registered so i am add mail confirmation to my resister area. And my problem is how can i delete users when not check or activated the mail. is it possible to ...
0
votes
0answers
18 views

How to 'remember' a site member's last visited page?

I've seen this on a couple of sites - they offer a multipage tutorials to site members. When you return to the site, they have a link that takes to the last page of the tutorial you were on. How is ...
0
votes
1answer
6 views

How to Add Image to Wordpress RSS-Feed with no Plug-in?

I have searched for adding featuring image to rss feed with no plug-in for WordPress. I have found some examples and applied how it was instructed. But All I have got now is nothing. Still can't ...
0
votes
1answer
16 views

How can I programmatically save data into custom fields that contain serialized data?

I purchased a theme from themeforest recently that has a custom post type. Here is a link to a page that's been created with the custom post type: ...
0
votes
1answer
24 views

How do I programmatically add items to a custom post type?

I have a custom post type to which I'd like to programmatically import data. I have followed these instructions and these, and I can easily do it for WP typical pages and posts. However, my custom ...
1
vote
2answers
580 views

Loop with slider (slider not loading)

In my slider.php I have a loop that calls for a custom post type. That custom post type has a meta box for a slide url (link/title/etc). I can see the loop and everything else is working because in ...
-1
votes
2answers
19 views

Adding header logo instead of text

I want to add Header logo instead of the text "physics for All " in the following site. I think , i have to add my logo to my site then , i will have to insert the image link to the header.php ...
2
votes
2answers
940 views

Specific Loop For 2 <div> Within Each <li>

I need to create a loop that can logically be described as the following for a carousel: Requirements: 3 Loops 2 Posts Per Loop No Duplicates Order by Post Date Visual: < Start Loop #1 > ...
0
votes
1answer
24 views

How to change home or site url using action hooks or filter?

I want to change url dynamically, so is there any way to change url? I know other methods like from admin, directly from database or wp-config. but i want to change it from either hooks or filter. ...
0
votes
2answers
24 views

How to show a 'correct' message after submit a form?

I'm building a template page for submit a profile changes. I would like to show a 'correct' message in green(example) for the user knows. Here my template code: <?php global $avia_config; /** * ...
0
votes
0answers
20 views

Multiple Forms Email validation on a single page using javascript [on hold]

I am developing a Wordpress Widget Plugin that inserts as many as you want email input forms in a widget. I am using the following code to validate email fields function validateForm(form) { var x ...
0
votes
0answers
7 views

How remove Wordpress Impression from my website [duplicate]

I am developing one wordpress theme for client. I completed the theme. But he is asking about remove the wordpress theme impression. Here impression means when i try to see view page source i am able ...
1
vote
0answers
20 views

How do I get around “Sorry, this file type is not permitted for security reasons”?

I was wondering how I could allow .tiff files to be uploaded in my wordpress site. I get the message "Sorry this file type is not permitted for security reasons". This question has been asked in ...
0
votes
2answers
26 views

How do I do so that people can register on my wordpress site?

I've been given a task by my teacher to do a "social network" for a game. To begin with, I want to make a custom theme where people at first have the opportunity to register and login. As I have ...
1
vote
1answer
12 views

Proper syntax or method for keeping url in modified isotope / category links

I'm setting up a project gallery using isotope jquery plugin for layout and filterability. I've seen examples of how to add a list of category links and modify them to filter on click, but... I want ...
1
vote
5answers
808 views

How to trigger $_GET request within admin plugin page?

I have this form in my plugin function: <form method="get" action="" enctype="multipart/form-data"> <p class="submit"> <input type="hidden" name="do_it_hidden" value="run"> ...
0
votes
1answer
34 views

How to check if woocommerce is activated in theme

I'm creating a theme with woocommerce which has the following: <ul> <li> <?php if ( is_user_logged_in() ) { ?> <a href="<?php echo ...
-1
votes
0answers
17 views

Parse error: syntax error, unexpected 'if' (T_IF) on line 29 [on hold]

I need to get rid of the following WordPress error Parse error: syntax error, unexpected 'if' (T_IF) in /footer.php on line 29 <?php if(!is_front_page() && !is_single() && ...
0
votes
2answers
305 views

Simple seo-friendly custom $_GET url rewrite with htaccess

I have this url: http://sitename.com/?game=runescape Is it possible to modify the htaccess file or rewrite the url via Wordpress to become like this: http://sitename.com/game/runescape
0
votes
0answers
24 views

A-Z Index Taxonomy

Hi to all I just got working the code below to display an alphabetical pagination on index. //Register the AZ Index shortcode [azindex] $azindex = ''; add_shortcode('azindex','azindex_get_filter'); ...
0
votes
0answers
7 views

auto order posts of custom posttype by title

i have a custom posttype which has more than 50 posts... i want to reorder alphabetically ...so that each time i post anything the system automatically reorders... plz dont suggest post order plugin ...
0
votes
1answer
28 views

Accessing an API with jQuery and AJAX

As a proof of concept I'm trying to access an API using jQuery and AJAX and posting the results to a page. After following some online tutorials and doing my best to put it all together I have the ...
0
votes
0answers
23 views

Need help with custom PHP plugin

I'm trying to write a small plugin to use for testing login credentials to use with some games I'm making. But I keep running into issues with the script I can't figure out. The issue I'm having is ...
0
votes
0answers
30 views

Rewrite url for custom post type not working

I have a Custom Post Type and i want to rewrite the URL. nothing is working though. This is the adress i have now /?portfolio=adidas. When I rewrite the numerous ways i tried i always get this ...
-2
votes
0answers
18 views

Creating registraion like matrimonial site [on hold]

I am trying to create registration and login for matrimonial site using wordpress. I have created 2 templates for login and registration. After successful login I wanted to display the profile of that ...
-1
votes
0answers
7 views

create code for the notifications to apear on theme header [on hold]

When i add this code on header <?php bp_adminbar_notifications_menu(); ?> i get this IMAGE1, but i want to create a code for notifications to open on drop down like this IMAGE2, pls help me to ...
0
votes
0answers
17 views

Which core file(s) handle $_POST and $_REQUEST?

I have a wordpress site with a subdirectory which should be excluded from the wordpress environment. I have tried to exclude it via .htaccess, and I have tried to make sure my form element names don't ...
0
votes
2answers
34 views

How to use my style.css file outside of wordpress subdomain?

I am building a wordpress theme from scratch on a subdomain and I want to use the same CSS files across my entire site. My problem is linking my wordpress PHP files (which are on the subdomain) to my ...
0
votes
3answers
453 views

How to store accumulate multiple option values in a single array using Options_API

I have created an option array that stores a series of options, along with their values. The problem is that I want to ACCUMULATE these options and store them in the options database. Meaning I would ...
0
votes
0answers
10 views

How to add multi uploader to wordpress plugin?

I have a plugin where i need it two handle multi uploading forms to capture some images. but when i program the first one everything goes well and i can simply upload image and show a preview of that ...
0
votes
1answer
8 views

How to handle submitted form data from a widget [on hold]

I am trying to create a fairly simple plugin for newsletter registration. I know there are enough good plugins out there that could do exactly what I want. Just for the sake of learning I got the ...
2
votes
2answers
259 views

How to export/import theme customizer settings?

I am wondering if it is possible to export theme customizer settings(theme_mods) to be imported into another install of the same theme. I know that the settings are saved into the database so I am ...
1
vote
1answer
461 views

Load post content into iframe

I would like to load a Wordpress post into an iframe when a link on a wordpress page is clicked. This is the link I currently have. <a href="' . get_post_permalink($sight->ID) . '" ...
1
vote
0answers
23 views

Problems accesing my site [on hold]

I was building a new site with WP, but when I checked it with various servers on http://www.host-tracker.com/InstantCheck, most of the request are returning with a 503 error. In addition my memory ...
-1
votes
0answers
6 views

Simple Press Plugin - Add content to sp_SectionEnd('', 'content'); [closed]

This question is in relation to the Simple Press forum plugin found here: http://simple-press.com/ In the template files there is this call: sp_SectionEnd('', 'content'); I would like to hijack ...
0
votes
1answer
3k views

Insert <a href=“#”> Tag Using PHP [closed]

I have existing code in my theme but my problem is I can't figure out where to place an <a> tag so I can link it to the page I want. php code <?php global $post; $slider_cats = ...
0
votes
2answers
1k views

phpMyAdmin error #1062 - Duplicate entry '1' for key 'PRIMARY'

I'm new to PHP! I'm trying to import an SQL file using phpMyAdmin through a GoDaddy cPanel(please don't make fun of me) Here's a full readout -- -- Dumping data for table `wp_commentmeta` -- INSERT ...
1
vote
2answers
313 views

Custom gallery in wp3.5

I used a tutorial I found for a slick little custom gallery in 3.4, but upon upgrade to 3.5 it no longer works. I'm trying to learn php still and can't seem to get this working again, as I either get ...
0
votes
2answers
261 views

Which file i must edit to define a constant of WP Super Cache? [closed]

This WP Super Cache plugin doesn't let my shopcart (using shopp plugin) update when someone add or remove items. There is someone say that i must define a constant define('DONOTCACHEPAGE',1); to ...
0
votes
2answers
387 views

Inserting data into `post meta` table?

How would I be able to insert data into the post meta table? I know how querying and wpdb works but I have no idea how I can just insert it into the table. I have these two fields I want to insert ID ...
2
votes
2answers
4k views

How to validate WordPress generated password in DB using PHP?

I am working with site that is done with WordPress, and I need to add some parts that are outside WP, and to check user login, Logging users outside WP. I tried with md5 of password but it's not... ...
1
vote
2answers
629 views

Recent Posts slider, using WP_Query(), loads duplicate sliders

I have written a small piece of code for Wordpress that will show the most recent top 4 posts in a slider (the Filament Group Responsive Carousel). It works, displaying the posts and sliding them etc, ...
1
vote
1answer
17 views

Edit Image/Image Details - Replace button missing

I have a strange problem. I am dynamically populating content into Wordpress' tinyMCE editor. Part of this content is a placeholder image, that the user can then replace. The issue is when I click the ...
0
votes
3answers
34 views

Add widget logic for multiple conditions using page names

is_page( array ( 'About us', 'blog', 'contact,'Services') ) ; When I add the above code in widget login text area, it shows the below error: Parse error: syntax error, unexpected 'Services' ...
-1
votes
0answers
9 views

Get Email-id of the current customer after On Order Complete in WooCommerce [closed]

I need to send a custom email to the customer when the order is completed. How can I do that inside the functions.php and I want to send email to the customer email id they have mentioned in the ...