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

learn more… | top users | synonyms (1)

0
votes
0answers
5 views

How to disable auto friend requests when register buddypress?

When a new member register in buddypress, He found some request on friend->request tab. How do members get such request without others sending it? Can I disable this? Please help.
0
votes
0answers
7 views

Discount From Woocommerce cart

I am new for both wordpress and coding.I am integerating Referrals with woocommerce Subscriptions.Based on the no.of referrals I am discounting the total from the cart.I have written the following ...
-1
votes
0answers
6 views

I am editing a plugin to sort list items alphabetically but can't seem to get it working. What am I doing wrong?

I know modifying a plugin is a big no-no. But I'm sure most of you have done a few in a few cases. This happens to be the case. So I bought a plugin for a client to use on their website but turns out ...
0
votes
1answer
240 views

Only single mail function is working from double mail functions one after another on wordpress

I am having a html form in my wordpress page and i have call action on my form. The file which is calling an action is saved in the root of wordpress directory. sending-mail.php I have two mail ...
0
votes
0answers
41 views

Add input fields to Wordpress search to search custom fields

I have 2 custom fields: first and last. My goal is to add 2 new input fields (first and last) to search their respectable custom field. Here's my form code in searchform.php: <form role="search" ...
0
votes
2answers
247 views

You do not have sufficient permissions to access this page while making a plugin

You do not have sufficient permissions to access this page. This is the error i am facing while making my own plugin.Actually, i want to link to another page. Wordpress version is 3.8.1 I made a ...
0
votes
2answers
48 views

Count Title and Post Characters

I need to get a total count of characters for post titles and post text characters. Are there any build-in WordPress functions available for that? My posts are paginated so the numbers for post text ...
1
vote
1answer
223 views

Showing user ID on user main page from screen options

On the user main page in the screen options, you have some choices for displaying user information e.g.. e-mail, role, posts etc.. Is there a way to be able to display the user's unique ID?
0
votes
1answer
245 views

How to check if a category has a parent and child categories?

Im trying to check if 'categoryone' has a parent. Right know I can check and see that there is a category called categoryone, but I want to check categoryone for parent and child categories. I have ...
0
votes
1answer
15 views

How to define Og Meta Tags in header using conditions

I'm trying to configure my Facebook Og meta tags in my header so I get a different result on the type of page I want. I've been hitting some road block that searching through google haven't been able ...
0
votes
0answers
11 views

Custom call to action

I am trying to develop a simple call-to-action for our marketing group. They want white papers and other information to download once someone has entered their email. My question is, is my code ...
0
votes
0answers
13 views

ACF Getting first row from repeater field from post object in flexible content

I know the title of my question is a little confusing, so I will first explain what I am trying to do. I have a flexbile content field, where I have made a post object field which is multi select. So ...
0
votes
2answers
16 views

Child Theme's Read More Text

I'm sitting here trying to figure out how to change the Read More text. I'm currently creating a Child Theme of Oxygen and as far as I can tell, they don't have a function to easily change it. I want ...
0
votes
0answers
9 views

Create subscriber account using e-junkie send generated code

Trying to use e-junkie's send generated code feature to automatically create a subscriber wordpress account for new customers. The code needs to take their information that is passed through after ...
0
votes
2answers
36 views

PHP Script for last login time

I've got this script to update a table in my database with the logout time of a user, then when they log in next time, this data is shown in the form of "Last login: date time". However this isnt ...
0
votes
0answers
6 views

Redirect all users to previous URL before login, except “contributors”

In one hand I redirect all users to previous URL before login. This is the code: function login_redirect( $redirect_to, $request, $user ){ if(isset($_REQUEST['redirect_to'])){ return ...
0
votes
1answer
14 views

special character “-” is not properly displayed in json response?

I want to display - instead of that characters. How can i get it? Actually i tried with the below code: header('Content-type: application/json; charset=utf-8'); // Even i insert the charset=utf-8 ...
-1
votes
0answers
21 views

Why wordpress plugin shortcode doesn't work properly with IE

I recently working on a wordpress, plugin, it already reached a final stage, and all it left is cross browser compatibility, the problem is why shortcode doesnt work properly With IE. Below are My ...
0
votes
1answer
548 views

Using the wp_remote_post response body

I don't have great PHP skills, but can usually fumble my way through with a little bit of direction, so I'm hoping someone on here can help me. I am doing a http post submission from a form to a ...
-1
votes
1answer
975 views

How can I list only Subcategories in Woocommerce

So I have been able to list all the categories in woocommerce, but I am having trouble trying to list the subcategories of the category 'bathrooms'. Does anyone have any idea how I can achieve this? ...
-2
votes
0answers
18 views

Unicode conversion in sql database

I am inserting the post titles and post body in UNICODE, but i dont want to save in unicode UTF8 characters. Instead, i want to use my title and text body convert function automatically and display ...
0
votes
1answer
640 views

How can I show registration form inside modal?

I want to show registration form inside modal popup. Now I can use fancybox and show modal popup but how can I show registration form of wordpress inside that modal? Is there any plugin available for ...
0
votes
1answer
21 views

Use page.php for front page

For some reason even when I am selecting a static page for my homepage it is still choosing to load the index.php file. I would really appreciate your help on this as I would like it to load my own ...
-1
votes
0answers
11 views

Modify Header file of Optimizepress [ op_theme_file('header') ]

I have tried to edit the default header of Optimizepress, I have edited the blog header, but it seems I can't edit the default page header. On header.php its written <?php op_theme_file('header') ...
0
votes
0answers
8 views

comment_post and preprocess_comment connected

In my comment_form arguments i add a input label with a value: 'comment_notes_after' => '<div id="canvasDiv" ></div> <script type="text/javascript"> ...
0
votes
2answers
291 views

How can I redirect this contact form to a specific permalink

I'm converting a HTML site to WP for a client and they have a simple contact form in place. If the submission is sucessful it currently, in it's HTML form, sends them to thankyou.html but I want to ...
0
votes
0answers
17 views

get all categories post in json format?

<?php include("../wp-config.php"); header('Content-type: application/json;'); $jsonpost = array(); //for each category, show all posts $cat_args=array( 'orderby' => 'name', ...
-4
votes
0answers
12 views

How i can have the best optimization on wordpress [on hold]

I need some help to optimize my blog, any sugestion or help. thi is my blog http://tecnologiageek.com/
0
votes
2answers
80 views
+50

Building a plugin into a theme

Firstly, I know this is 'bad' practice for several different reasons, but for reasons that I won't waste your time with it's something I need to do. Using a fairly simple plugin and I've tried ...
0
votes
1answer
18 views

Generate responsive post thumbnails of same size

I am using a function to display related posts in my wordpress theme with their thumbnail. I am using uikit to make my theme responsive. Uikit offers a grid feature similar to the bootstrap one, and ...
1
vote
2answers
163 views

Why declare $post globally?

I'm new to Wordpress development and am seeing examples everywhere that have a line to declare the $post variable explicitly via: global $post; But I've tested my uses without that line and it ...
0
votes
0answers
7 views

Displaying Custom Post Type on Page with Same Title

I'm building a sports blog. I have a custom post type called conference. Each conference post contains HTML that is displays the team logos horizontally on my team custom posts as shown in the ...
0
votes
2answers
50 views

Displaying One Custom Post Type's Content On Single Post of Another Custom Post Type

I'm currently building a college football blog and I have 2 custom post types: conference and team. Each conference post type will be a horizontal list consisting of each teams' logo and will be ...
0
votes
1answer
319 views

Include a specific post to the query_posts and remove it if it is already in the returned list

Bare with me. Firstly, here is my whole script for my featured slider articles: <div id="featured" class="<?php if ( $responsive ) echo 'flexslider' . $featured_auto_class; else echo ...
0
votes
1answer
29 views

Occasional include / require_once fatal errors

I've been noticing a relatively rare occurrence with WordPress installs on one dedicated server. Once in a while a page will fail to load due to a PHP fatal error for trying to include or require a ...
1
vote
1answer
29 views

Is it acceptable to treat a filter like an action?

The wp_insert_attachment_data filter is available inside wp_insert_attachment(). It allows attachment post data to be filtered before it is updated in or added to the database. $data = apply_filters( ...
0
votes
1answer
92 views

Cannot modify header information - server cache

I have a wordpress website hosted on Lightspeed server. There's an error message displaying in admin login page and I can't access wordpress backend. This is the error Warning: Cannot modify ...
0
votes
1answer
372 views

Unexpected token ILLEGAL, even on clean install - jquery-issue?

update i get even more issues and errors; POST http://literaturen.org/wp-admin/admin-ajax.php 200 OK 1,39s jquery...=1.11.0 (Zeile 4) GET ...
6
votes
2answers
772 views

How does Wordpress support Unicode?

I've been looking through Wordpress' codes and they're mostly using PHP's regular string functions, like strlen, strpos, etc. Yet I know Wordpress supports utf8, so how does it do that? Does it ...
0
votes
1answer
280 views

Specified file failed upload test. wp_upload_handle

So I managed to write a peice of code that allows me to upload a zip file, im not even sure where it gets uploaded too, and I am doing it on my localhost with apache in control (www-data). the code is ...
0
votes
0answers
12 views

Flexslider won't work on Wordpress

Hi guys I recently created a custom post type for flexslider on my Wordpress theme. However upon testing it got some issues. The slider is showing up but the images wont show up on it. There are two ...
1
vote
2answers
28 views

How to use an associative array in post__in with WP_Query?

I have stored user favorite posts in the user_meta table of WordPress. The data is stored in a format, for example a:1:{s:8:"post-134";s:3:"134";s:8:"post-136";s:3:"136";}. How can I get this in the ...
0
votes
3answers
250 views

Custom Loop Pagination on WordPress

I'm trying to create a magazine style website. For this particular page (not homepage) I'd like to fetch the latest post and style it one way (style1). For all the other posts I'd like to just display ...
1
vote
1answer
617 views

Using PHP to toggle stylesheet and header image, set in cookie

I haven't done a lot of work with cookies or Wordpress before so I think I've been a bit over-optimistic in my quest :p I have created two themes for my site, night and day. I would like the user to ...
0
votes
1answer
19 views

Why isn't my link attribute getting my css?

<link rel="stylesheet" type="text/css" href="style.css" /> That is the line I am using. The style.css file is in the same directory as the file I am running that from. Tt specifically just ...
0
votes
1answer
9 views

How to map my php files as the files for pages

How do I map my php files (like a file that is supposed to be the page "blog" and it contains all the html and php) to the actual page the html is supposed to be marking up many thanks note: I would ...
0
votes
1answer
29 views

Changed URl in General Settings now Wordpress site doesnt work

My website URL was www.example.com/singer I decided to get rid of "/singer" in the dashboard and ever since i have met with this error. Fatal error: Call to undefined function wp() in ...
1
vote
1answer
577 views

Compare post-IDs within WP_Query? (Less than / Greater than)

Can I use WP_Query to only query posts less than (or greater than) a given post ID? $filtered_query_args = array( 'post_type' => 'projects', 'order' => $prev_next=='next' ? 'DESC' : ...
0
votes
1answer
23 views

No Authors for custom post type

I am trying to implement custom post type in Wordpress. plugin: Advanced Custom Fields register_post_type('acf', array( 'labels' => $labels, 'public' => false, ...
0
votes
0answers
22 views

Creating two loops. First for latest post or latest sticky, second for all other posts

I'm new to Wordpress and PHP and I've been battling with this for a while now. What I have for the moment is 2 loops. I want to first loop to only ever show 1 post: either a sticky post, or the ...