0
votes
1answer
26 views

How to order users alphabetically by name? in plugin UPME

I have this code: <?php class UPME_List_Cards { public $upme_options; public function __construct() { global $upme; add_shortcode('upme_latest_members_list', ...
0
votes
0answers
18 views

Front end post submit with custom taxonomy and category

On my website i'm buildng a front end post publishing based on this article. All my posts have both category and a custom taxonomy. The problem is that I can't find a way to save both default ...
0
votes
1answer
24 views

How to make picture appear on wordpress site shared link? [on hold]

I would like to know how to make a piture appear on the thumbnail to the left of the text when I share a link of my wordpress on facebook. I dont post any images to the website, but would still like ...
0
votes
1answer
25 views

If Portfolio item has tag, add CSS

I've recently purchased the Stockholm theme and am trying to customize it: I would like to have the ability to mark certain Portfolio Items as being 'SOLD' with black squares in the top-left corner, ...
2
votes
1answer
39 views

add_filter() function misunderstanding

I'm studying the theme "one page" and there is the following code: function onepage_sections() { $sections = array(); $sections['service_section'] = array( 'id' => 'service_section', ...
0
votes
2answers
23 views

How do you override the default comment template?

I have a custom user database that is integrated with a wordpress website using a custom built plugin. I also want to integrate this user system into the comment system. I have found and completed ...
0
votes
0answers
13 views

meta_query in $args ignored when called from theme

I have the below function in my plugin in the MyManager class. public static function test() { $numRowLimit = 6; $arrArgs = array( 'posts_per_page' => $numRowLimit, ...
0
votes
0answers
21 views

Changing home page url depending on user login

I need to change the home WordPress page depending on user type login, When one user login with type='subscriber' I need to redirect this user to another private page and change home URL. I tried it ...
1
vote
0answers
13 views

Add 'Last Modified' and Attachments (Yes/No) to WordPress Users Column

I was wondering if someone can put me on the right path in regards to adding additional columns that show the last modified date and if a user profile has attachments. Ideally I'd also like to be able ...
0
votes
2answers
36 views

Certain number of posts with certain excerpt length

Could use some help... using this code to call up a custom number of posts from a certain categorey and only want to display the first 15 characters. However, it is showing the same excerpt on each ...
-3
votes
0answers
7 views

How can I extract all products (and their attributes), and display+order them as text/links in a table? [on hold]

My client is giving courses/training, and his customers can order their place through Woocommerce I made the attributes 'date' and attribute 'time'. For 'date' there are 3 values; august 4, august 8, ...
0
votes
0answers
11 views

Strategy for organizing JSON/tabular data the wordpress way?

Situation: Have to import about 20-100 JSON objects into wordpress, which will NOT be displayed at all, but will be processed with other data for view. Example JSON input: { "headers": [ ...
0
votes
1answer
17 views

Post URL duplication adds numerical value

I thought that belonging to these different categories url naming posts the same would be treated as distinct. Categories: Home Hotel Posts: street street URL generated: ...
0
votes
0answers
6 views

submenu item under other top level menu and change some fields

I would like to add the 'Add new' user submenu to have a different name(in the menu) and under a custom top level menu that I created. I have removed most of the standard admin menu and replaced it ...
0
votes
1answer
8 views

get_user_by asking for string while string is given

I've added an extra field to the login form. When trying to get the user's value of that field(before checking if it's equal) I have a get_user_by('login', $username);. $username being an email ...
0
votes
0answers
11 views

How to bypass browser popup when using web service in wordpress? [on hold]

When I hit this http://username:password@siteurl.com it will give pop-up in browser. How to bypass this? Thanks.
0
votes
1answer
16 views

Wp_mail doesnt work

I created a form for mail sending, but it does not work. Email function is enabled in php. if (!$error_msg) { $to = "mail@to.send"; $headers[] = 'Content-Type: text/html; charset=UTF-8'; ...
0
votes
1answer
16 views

Help to upload post attachments from Ajax

My problem is that I cannot upload post attachments from a frontend form. I send data through AJAX to my php files containing functions. Let me be clear: everything is working great, the post is ...
0
votes
4answers
38 views

Hide Image On Wordpress On Single Page

Sorry, I know this kind of question has been asked before but I can't quite figure it out. I'm trying to hide the city image on this page: http://learnenglish20.com/buy-tokens/ I put this CSS in ...
0
votes
1answer
12 views

Login_form add to top of form rather then bottom

I have added a 3rd field on the login page, but it shows at the bottom(underneath password) while I would like it to show above Username. How can I manipulate the order of fields? This is the code I ...
0
votes
1answer
30 views

Foreach inside foreach

I got two taxonomies: "Colours" and "Recommended Colour" both have the same terms (same colours). I want to display a list of all terms of the taxonomy "Colours" and mark one colour as recommended. ...
-2
votes
1answer
14 views

How to attach multiple images to post title using front end form and retrieve them? [on hold]

Photo //upload to dashboard $_POST['fname'], 'post_content' => $_POST['message'], 'post_status' => 'publish', ...
0
votes
2answers
9 views

$wpdb->last_error deosn't show the query on error

I am inserting data in the custom table using the $wpdb->insert. However, upon error I don't seem to get any information from $wpdb->last_error. What could be the cause of this? I already have ...
3
votes
1answer
37 views

(un)wptexturize() — is it possible?

I have some text stored in a string $text that's filtered through the_content and therefore, wptexturize(). wptexturize() is a function that replaces various characters into more prettier ones. Is ...
0
votes
0answers
21 views

Redirect loop after changing nameserver

my site is https://techyuga.com. Yesterday, I tried to change the nameserver to CloudFlare nameserver. But after that,I am getting infinite redirect loop on my website and I can't even log in to my ...
-1
votes
0answers
8 views

woocommerce download product only show to member who purchased it [on hold]

Hello I have a wordpress website and I created some downloadable product when purchase is completed it shows them their download link And I set it to redirect so if it a video they can see it in ...
0
votes
1answer
39 views

inline css causes multiple copies

This is a question that' stumpled me and I don't know how to ask the right question. If the question is labeled incorrectly, please rename it. I'm using an inline CSS to make the featured image a ...
0
votes
1answer
18 views

WP 4.5 hide core customizer sections

Since WP 4.5 the way you hide core components from the customizer was changed. Changed from $wp_customize->remove_panel() to customize_loaded_components. ...
0
votes
1answer
14 views

Listing posts with wp-cli

I use wp-cli to export some posts from my WordPress database. I'm trying to understand the differences in behavior that are exposed in the example below: $ wp post list --path=/var/www/home-web ...
0
votes
0answers
9 views

Wordpress Woocommerce Assign Slider to Product Category [on hold]

I would like to assign a custom image slideshow to a 'WooCommerce Product Category', Can anyone make a suggestion as to which plugin would have this functionality?
0
votes
1answer
19 views

What Does “Cannot modify header information?” Mean

I have come across a rather concerning issue with my theme that continues to crash my site whenever I enter a new post. I turned on debugging and I'm given the following errors messages: Cannot ...
0
votes
1answer
20 views

functions.php adding item to end of menu. I want to change position

I found a function in my template that is adding a register button to the end of my menu. I'm wondering if there is any way to make this function add the register button to the beginning of my menu ...
-3
votes
0answers
29 views

Theme oddly broken when updating from 4.4 to 4.51 [on hold]

My Wordpress theme seems to break and look very bad when I update from Version 4.4 to Version 4.5.1. I can't work out how to fix it but it appears that the styling is coming from a common.min.css - ...
3
votes
2answers
104 views

Search & Remove Specific Shortcode From All Posts

Question Is there a way to remove a specific shortcode, say [print_me] from all the posts where it appears in one shot. And I don't mean mask it or filter it so it doesn't show up while it stays in ...
-4
votes
1answer
49 views

Twenty sixteen - full height

I want the twenty sixteen theme to "fill up" the height even if the page is empty. So.. If the content does not fill it up, it will be minimum full height.
1
vote
0answers
19 views

How do I authenticate WP users from a chrome extension?

I'm new to WordPress, and I need help. I am writing a chrome extension and intend to use wordpress as the user database. I intend that because I'm using a subscription management WP plugin that keeps ...
-3
votes
0answers
21 views

Add home page image slider and different sections [on hold]

I would like to build home page in which i would like to add home page image slider with action video or link button in each image. I would like to add different sections listed as below. ...
0
votes
0answers
8 views

Exporting a multisite DB for a single site production site

So I have a wordpress multisite that houses all of my client test sites(14). This means that its all one database obviously. This client is now ready to go live on a single wordpress instance so I'm ...
-3
votes
0answers
19 views

Category Name in WP_Qurey

When I run this query the categories name the same , all item with categories name "News", I can not define the issue . You can find the code in this link
0
votes
1answer
13 views

get_page_templates only return templates with “home” in the filename

I have the following custom page template filenames: template-about-1.php template-about-2.php template-home-1.php template-home-2.php I have this function to get_page_templates: function ...
2
votes
1answer
15 views

Getting results from wp_oembed_add_provider

I'm having trouble getting results from wp_oembed_add_provider(). I'm developing a site which needs to embed video content from Facebook, and I came across this handy list of Facebook URL structures. ...
0
votes
0answers
13 views

Update get_page_templates function to pass template filename into select option value [duplicate]

I am using the following function to pull page templates into a select menu in WordPress' Theme Customizer: function get_page_templates_select() { $teh_cats = get_page_templates(); foreach ( ...
0
votes
1answer
18 views

Load get_page_templates into select menu

I am using WordPress' Theme Customizer where I would like to add an option for the user to select the page template used. Here is the code to get the page templates. This is the section that needs ...
1
vote
1answer
27 views

Using WordPress' Theme Customizer to select page templates that update layout in the preview

I wasn't sure where to post this question.. I recently discovered WordPress' "Theme Customizer" and am using it to make the pages easier to update for clients. Rather than the standard way of editing ...
0
votes
0answers
29 views

Storing Unique Data on the Database

I have created a custom table on my database using the code below: function dbcreator_activate() { global $wpdb; $table_name = $wpdb->prefix . "ftbstatistics"; if( ...
1
vote
1answer
17 views

With Wordpress + Visual Composer, how to restrict a user to change some content in a page?

Sorry if it's not the right place to post that but I did not find better. I know in Wordpress, it's possible to restrict users to change pages or remove items from the menu. But is it possible to ...
0
votes
2answers
32 views

Role can edit just one page

I've built a site for a client, only ten pages, nothing especially big, and created a role for the group members called Blogger, as the staff need to all be able to both blog and access a couple of ...
0
votes
0answers
19 views

Allow one use group to manage another

I have a website where members and their managers have accounts. The members can create and upload their content, but the managers have their own login and can see a list of the members they manage. ...
3
votes
1answer
51 views

Hiding posts from non logged in users

I wish to hide certain posts for anyone that is not logged in. I tried the Restrict Content (RC) plugin but that did only hide the content of posts, i wish to omit the post completely. Using RC as a ...
1
vote
0answers
13 views

Add custom capabilities to existing custom post type

The only way I can find to associate post types with custom capabilities is during the register_post_type function. I'm looking to add a capability for a certain role (my_role) for a post type that ...

15 30 50 per page