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

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Remove all nav menu classes except those which begin with certain letters

I'm currently using a function which strips out all the unwanted classes from my nav menus, leaving only the classes I want to keep (the ones listed in the array inside the function). It looks like ...
-1
votes
0answers
8 views

Global JS variables

Ok, here's the basic idea. I want to have one javascript activate another. It seems like a fairly straightforward idea. I have my first js file set a variable to 1, and my second js file start with an ...
0
votes
0answers
18 views

Wordpress CMS importing only for the frontpage?

I use a WordPress Masonry template, so what i tried to did was i copied all the code from my index.php and used the copied code as a FOOTER WIDGET (i have modified my functions.php file. I am allowed ...
0
votes
1answer
35 views

Random Custom Post Type

So i have a custom post type, and everything is correct when displaying. But i want that the custom post type appear random. I tried orderby => 'rand' but probably not in the right place and probably ...
0
votes
0answers
12 views

List of products (only view)

I'm searching to show a list of products in the user front-end. In my back-end I created some fields with this content: '0' and I would like show to the users if the content is '1'. Exemple ...
0
votes
1answer
9 views

How to redirect unattached image attachments

I'm currently redirecting all attachment images to their parent post with the following function: function attachment_redirect() { global $post; if ( is_attachment() && isset( ...
-1
votes
1answer
18 views

Does WordPress create a new Linux user when creating a new WordPress blog?

I wonder if WordPress creates a new Linux user when creating a new WordPress blog? I am a NodeJS developer, but from what I know PHP scripts can also have access to entire file system. That's why I ...
5
votes
0answers
38 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
0answers
12 views

Ai1ec - Event Query [on hold]

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 ...
0
votes
0answers
20 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
16 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
1answer
7 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
18 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
25 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
votes
2answers
20 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 ...
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
1answer
26 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
26 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; /** * ...
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
27 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
13 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 ...
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
18 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
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
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
1answer
33 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
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
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 ...
-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
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 [closed]

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 ...
0
votes
2answers
35 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
2answers
75 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 ...
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 ...
-2
votes
0answers
18 views

Creating registraion like matrimonial site [closed]

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 ...
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
10 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 ...
0
votes
0answers
23 views

Meta-Box to add multiple items one at a time and on publish save all

My example custom content type is for recipes. There will be a meta-box for ingredients. In this meta-box there will be three attributes and a "add" button. Name Measurements Notes Add Button My ...
0
votes
0answers
17 views

How can I embed a .php file inside of a widget?

I have a currency exchange that I'm trying to put in the sidebar of my Wordpress site. The currency exchange is a simple php file that I'm trying to 'embed' as a widget. I created a simple plugin, ...
1
vote
0answers
19 views

Should I use spl_autoload_register() in my plugin?

When I use spl_autoload_register in my plugin, I get: Fatal error: Uncaught exception 'LogicException' with message 'Class wp_atom_server could not be loaded' ...
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
1answer
26 views

Is WordPress right for me? I am building a website that must meet requirements [closed]

I am building an internal website for my company. Quick run down of some of the requirements: Users will authenticate with Active Directory or login with email and password. There will be the Main ...
0
votes
0answers
18 views

Dynamically set background image for <li> elements using the href name [closed]

So I have a list of links which I have made to look like a Accordion. Each Accordion Element has the background image set using CSS. ul li:nth-child(1) { background-image: ...
0
votes
1answer
39 views

Values inside a custom field to determine which category posts to display

I am facing a little problem whilst trying to display posts, from certain categories, on the front end. I've created a custom field whose key is 'related_categories' and I've different categories with ...
0
votes
0answers
14 views

Use proxy to bypass JSON restricion

I'm trying to pull content from an API that does not allow JSONP using jQuery and AJAX. Obvisouly I'm running into cross domain problems. The only work around for this seems to be using a proxy on my ...
-1
votes
0answers
15 views

Calculations with Woocommerce Customer/Order CSV Export [closed]

hoping someone can point me in the right direction. I've been customising the Woocommerce Customer/Order CSV Export plugin with help from the documentation ...
0
votes
0answers
13 views

Check role in database

I'm developing a script outside of Wordpress that needs to work with the Wordpress database and our website. I just need to check if the role of a user is our custom role (already defined) of ...
0
votes
1answer
19 views

I want my wordpress loop to only display posts of the standard format

I currently have the following php code for the content loop on my homepage. <?php if ( have_posts() ) : // Start the Loop. while ( have_posts() ) : the_post(); ...