0
votes
1answer
30 views

Call to undefined function wp_insert_user()

I am developing a registration system that will connect our main database from a php website with the database of wordpress. I would like to use the following functions. <?php wp_insert_user( ...
4
votes
0answers
17 views

Get upload URL by blog ID in multisite

The essence of the question is, I'm looking for a solution like this: $blog_upload_dir_info = wp_upload_dir( $date, $blog_ID ); $blog_upload_url = $blog_upload_dir_info[ 'baseurl' ]; Where ...
-2
votes
1answer
29 views

How can I search for usr_id within my date range with WP List Table?

I've fiddled around with the custom list table plugin for some time now but I'm not so much into MySQLi yet, so I hope there is someone here able to help me with my problem. My current code looks ...
1
vote
1answer
30 views

How to add rewrite rules and pagination to retrieve attachments files?

I'm trying to list attachments based on different taxonomies. Right now it only work for the basic url (no pagination added). For example ...
1
vote
0answers
15 views

Multisite Domain Mapping with SSL

I've done some searching but couldn't find this issue elsewhere, apologies if this has already been discussed elsewhere. I've set up a Multisite install; and am trying to set up domain mapping for ...
0
votes
1answer
24 views

Add special meta box to custom post type

I have managed to add a meta box to my custom post type (see code below) Now I need to add another meta box. With this box I want to display / edit a value from another table called ...
0
votes
1answer
16 views

My wordpress site is using local ip to point to jquery and other files, how to fix it?

I installed WP on my Raspberry Pi using this guide : https://www.raspberrypi.org/documentation/usage/wordpress/ I did not do the last part about permalinks yet. Problem is, when I navigate to my ...
0
votes
0answers
14 views

How to replace text in shortcode with custom fields? [on hold]

How can I replace text in to the shortcode ? Example : [ult_buttons btn_title="rezultati" btn_align="ubtn-center" btn_size="ubtn-custom" btn_title_color="#f2c121" btn_hover="ubtn-no-hover-bg" ...
-2
votes
1answer
26 views

Limit shipping to specific State's only [on hold]

I want to limit shipping to my customer to specific states only. Actually i want to show specific states on my shipping address state field. I have try this function ...
0
votes
0answers
15 views

301 Error Problem

I have received 301 error few days ago.I'm newbie in this business. I installed 301 redirection plugin and fix it but the problem still exists. Can anyone help me to completely fix this issue. One ...
-2
votes
1answer
17 views

Wordpress show error 500 on ajax call [on hold]

I have an issue in php call over ajax. If I put echo 'test'; in php file, that works fine and it alerts TEST, but if I put $myVar = 'test'; echo myVar; it doesn't work. I wish to emphasize that call ...
0
votes
0answers
24 views

Wordpress 4.2.1 pre_get_comments doesn't work after update

I have this code working all time but, after updating to Wordpress 4.2.1, this doesn't work. // return just the missing replies in the comment table add_action( 'pre_get_comments', array( $this, ...
0
votes
0answers
12 views

How to combine multiple custom menus into shorter code

I am working on a plugin that I have on the WP repository and I would love if someone could help "optimise" this code I have for some custom menus. Currently, there is 3 locations of which I pretty ...
0
votes
0answers
13 views

Custom post type archive not displaying after site move from sub-directory

I have just moved a site from a sub-directory to the root of a domain. The move went reasonably well but I came up with two issues that have stumped me. The first which I have resolved was that one ...
0
votes
0answers
15 views

How to populate a nav-menus meta box with admin menu items

I have successfully added a new meta box to the Appearance->Menus (/wp-admin/nav-menus.php) page called "Admin Pages". Now I need to populate it the same way the standard "Pages" meta box is, but ...
0
votes
1answer
13 views

customize_register with Multiple controls/settings - how to get values?

PHP newbie here, and I have this on my functions.php function mcs_social($wp_customize){ $wp_customize->add_section('mcs_social_handle', array( 'title' => __('Social Network ...
0
votes
0answers
9 views

Replacing Standard Category Metabox

I am rewriting the standard category metabox to include a Custom Field as a select box which is dynamically updated as the user chooses the categories. This select box is set with all "checked" ...
1
vote
0answers
16 views

Override parent theme translation on child theme

I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages. Then I created a child theme that uses load_child_theme_textdomain() to achieve ...
1
vote
1answer
16 views

Show total author's post views by posts post_meta

I'm searching the web on the last 3 hours without success. I have a website where authors can publish posts, and posts views are tracking using postmeta "post_views_count". I'm using this code and ...
0
votes
0answers
17 views

Functions.php in Child Theme error issues

I have been trying to update my functions.php file in my child theme and find this code in the file downloaded from the host. add_filter('https_ssl_verify', '__return_false'); ...
1
vote
1answer
13 views

How to disable single post view in wp

I want know, How to disable single post view in wp. any plugin or setting??? Is there a way to disable single post page, for example when some tries to go to single post page to show not found or 404 ...
0
votes
0answers
22 views

Updated from 3.8 to 4.2 and all post types changed to “post”

My client updated his website from WordPress 3.8.x to 4.2.1 in order to make a plugin verify as working correctly. We were holding off originally to do it and some other plugins all at once so we ...
1
vote
0answers
24 views

Custom megameu walker need improvement

I'am working on a custom megamenu that will look like <li class="l-nav-item l-mega dropdown"><button class="open-icon visible-xs fa fa-angle-down"></button><a href=" ...
2
votes
1answer
28 views

Log of Heartbeat Calls

I've read that Heartbeat can slow a WP site down and I'm assuming if our admins/store managers have a lot of admin windows/tabs open, this will exacerbate the issue. If yes, is there a condition to ...
0
votes
0answers
14 views

Custom Taxonomy as Link

I have this image here http://i.imgur.com/5szTQNy.png which shows the download button I will be talking about. I am trying to make it so that when I put in a custom taxonomy box in the back end the ...
0
votes
0answers
16 views

oEmbed single custom field with multiple values

I need to display a single custom field with multiple values, but I need to display those values with oEmbed on it. I found this, but it only shows a single value: echo wp_oembed_get( ...
0
votes
1answer
16 views

How to conditionally pass a parameter to wordpress search to limit post types?

I have a site with a subsection containing a custom post type, "artwork" I have an overall site search working how I'd like it to - it searches all of my posts and custom post types. I would like to ...
0
votes
0answers
22 views

Plugin Error on activating

I'm building theme. but for custom post type, custom taxonomies and shortodes . I created the simple plugin. just plugin info and then functions to create CPT CT and shortcode. here is the example: ...
0
votes
1answer
20 views

How to get_template_directory() properly on local environment

I'm currently developing a site locally in MAMP PRO. When I use get_template_directory() inside of the standard functions.php file, the site path gets output correctly. However, I have a separate ...
0
votes
0answers
14 views

Image Upload from URL doesn't work

I'm using the latest version of WordPress and a custom theme. I can upload images from my computer but not via URL. Using URL, the image DOES upload in /wp-content/uploads/ directory, but the post is ...
0
votes
2answers
30 views

Custom function causes a 503 error after a couple of hours

I have a custom function written in PHP for a Wordspress theme. When I initially wrote it, it worked exactly as expected (it returns the parents and grandparents etc of a term from its ID). However, ...
0
votes
1answer
29 views

Why are these settings unregistered?

After updating a WordPress site to version 4.2 (and the forced 4.2.1 security update), I get some weird deprecated errors: Functionality: Unregistered Setting The post-type-menu-page setting ...
0
votes
0answers
21 views

Drag and drop template builder [closed]

I created a custom post type with a few custom fields. Now I want to display these custom fields when I create pages from the new custom type. I would like to create a template for this custom type, ...
1
vote
1answer
32 views

Making WordPress Gallery (.gallery-item) Responsive?

Shortcode for Gallery: [gallery link="file" columns="5" size="medium"] I’m using a 5 column gallery on an inner page of a website, obviously when the site responds down to mobile and even tablet ...
2
votes
2answers
27 views

wp_link_pages: display current page number only if has multiple page breaks?

I'm trying to build a function to display the current chapter (page) within the single.php file ONLY if there's more than one chapter (page break). This function will output the chapter # within the ...
1
vote
0answers
26 views

Add word to permalink when custom field has a value

I would like to change the default permalink structure of posts (and all other types) that have a specfic post meta value. So when it doesn't have that value it just stays: ...
0
votes
1answer
26 views

How to add additional field to Add new category part (without plugin use) [on hold]

I want to add one custom field to Add new category (into WP-admin).The purporse of that field would be for icons (e.g user paste font-awesome icon class and it display icon on front-end). Thank you.
0
votes
0answers
13 views

Fetch external call on specific URL

Is there a built in function which - if not how do I accomplish - can map all incoming calls on a specific URL e.g. http://www.example.com/incoming/RANDOMSTRING to a function in WordPress? SOLVED: ...
1
vote
0answers
9 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
0
votes
2answers
32 views

Changing permalink from /postname/ to category/postname/

I have a website where it consists more than 800 posts, At present my permalinks structure is /%postname%/, but due to some reasons I want to change it to /%category%/%postname%/ I have implemented ...
0
votes
1answer
28 views

mp4 video preview

Our webpage is using WordPress 4.2.1 running Virtue - Premium theme. When I insert a video using visual editor, e.g. [video width="1280" height="720" ...
0
votes
0answers
8 views

Using a Select Field Type to add a class name to a specific li

I have a menu of departments where the active li will have an class="active". <li class="interiors"><a href="#">Interiors</a></li> <li class="lite"><a ...
0
votes
0answers
15 views

Changing default slug of post to the post id

Is it possible to change the default slug from the post title to a number? For example, the current url to a blog post would be: baseurl/blog/the-title-of-the-post Lets say the id of the post is ...
0
votes
0answers
13 views

Loop childpage content

I need help with how to loop out all children posts with a specific template, so basicly I need a loop the gather all pages that is a child and has a template named "puff". Is this doable??
0
votes
0answers
11 views

Adding widgets on customizr theme footer [on hold]

Im currently modifying the Customizr Theme which for me offers a lot of features. Im new to this modifying wordpress themes. I want to add some text-widgets and search-widgets inside my footer area ...
0
votes
1answer
26 views

get_comment_link without pagination base in the returned URL?

On pages with paginated comments get_comment_link returns URLs in the following format: http://samplesite.com/sample-page/comment-page-3/#comment-256 How could I make it return a URL like this? ...
0
votes
0answers
20 views

Update a string from the front-end

I want to have a form with a submit button, that every time the user clicks on submit, it updates a string (named order_string) and sends it to the back-end form to process. This is a part of my code ...
0
votes
2answers
17 views

Wordpress shows admin's avatar after editing a comment

Recently I updated my wordpress to 4.2.1 and now I have a problem with editing people's comments. After editing them, the avatar picture of who edited the comment is shown instead of the avatar of the ...
0
votes
0answers
21 views

Using Facebook PHP SDK with Wordpress

I'm using the Facebook SDK from here. I've put it all in a class like below: <?php use Facebook\FacebookRedirectLoginHelper; use Facebook\FacebookSession; use Facebook\FacebookRequest; class ...
0
votes
1answer
14 views

Are there some caveats for using guids for FB comments

I'm using Facebook comments box and just realized that when we use <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="100%" data-numposts="5"></div> and then ...

15 30 50 per page