0
votes
0answers
2 views

How do can I pass data retrieved from a filter to template files?

I wrote this class to display only the current top level menu item's children: class deseng_navSplit { var $sorted_menu_items; var $args; function __construct($x, $y) { ...
0
votes
0answers
6 views

What is wrong with this contact form?

I can't find what is wrong with this contact form. I get the message that the letter has been sent although I get no email in my inbox!.. I have made the contact form based on ...
0
votes
0answers
1 views

setup network in IIS and subdomain

I have a WP site with this site url: subdomain.example.com under IIS web server and now I need to setup multisite. I added in my wp-config.php: /* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); ...
0
votes
0answers
7 views

Removing admin menu items with white spaces

function remove_admin_menu_items() { $blog_id = get_current_blog_id(); if ($blog_id == 1) { $remove_menu_items = array(__('Team Members'),__('Policies'),__('Comments')); } else { ...
0
votes
0answers
6 views

why nl2br() is adding an extra <br>?

I store the text with wpdb->insert. While retrieving it with wpdb->get_results I echo it with nl2br() function to preserve the new lines (or it will be echoed without line breks). Problem is ...
-1
votes
0answers
4 views

How to add icon “play” to “video image thumbnail”

I want to add icon "Play" Video to Video image thumbnail or any pictures in Wordpress. (Ex: in the picture bellow) I had try to find plugin support this but I haven't found it. Is there any way ...
-1
votes
0answers
14 views

How would one concatenate a variable inside a url?

How would one concatenate a variable inside a url? <a href="<?php echo esc_url( home_url( '/' ) ); ?>team-names";?><?php echo "/" .$term->slug; ?>" >
0
votes
0answers
17 views

Render custom taxonomy query as single template

Im developing a "catalogue" plugin using a custom post type and a custom taxonomy. What I want now is to display the custom taxonomy as a single page. That means I if the taxonomy term "Popular Items" ...
0
votes
0answers
7 views

embedding video that has only play and pause options

I'm trying to embed a video on my site that has only play and pause button at the center. No other controls needed. I'm using the following codes but cant achieve the play/pause system. <video ...
0
votes
0answers
9 views

How to center dynamically loaded widgets [on hold]

I currently have a widget box that dynamically loads 3 boxes. 2 Boxes are ALWAYS loaded the moment a user visits the website. However, the third box is a "Recently Viewed" box that displays products ...
0
votes
0answers
9 views

WPAlchemy: Uploader with preview (like Featured image)

I am using WPAlchemy to generated custom meta boxes in the WP backend. I was wondering when using the Media uploader if there’s a way to show the uploaded image in the meta box (like in the built-in ...
0
votes
1answer
13 views

update_post_meta is Updating with two page id

I am writing a code to count the number of views of post. For that I am using update_post_meta and passing appropriate parameter. I am calling a function on add_action('wp', 'function_name'); in ...
0
votes
1answer
14 views

Custom Login Form - Redirect user to login page if not logged in

I have integrated custom login form as mentioned here and embed this custom login form to a WordPress page, via shortcode [dm_login_form]. After that I have integrated access control plugin here ...
-1
votes
0answers
8 views

Custom Post Listing In WP Admin

I am using woocommerce & Wordpress. i wanted to list current user's product in a seperate with the same product listing page ui. I have tried to override the class-wp-list-tables.php in ...
0
votes
0answers
8 views

Plugin settings not saving and 404 is generated on submit

I am creating a WordPress using https://github.com/nadeem-khan/WordPress-Plugin-Template as a starter template. This is my settings class file named 'class-xyz.php': <?php if ...
0
votes
1answer
7 views

How to add “back to top button” in wordpress backend product list page and order page?

Hello i want to set "back to top button" in the product list page and order page in the backend of the admin area in product list page and order list page. Anyone help me how to add this button or ...
2
votes
2answers
16 views

SQL to check how many sites a user is a member of

I have a multisite installation and I'm working on creating a reporting plugin. One of the things that I would like to do is show the number of sites a user is a member of. Right now, I'm using ...
1
vote
0answers
10 views

Theme elements not translating

Ive got a theme that is set-up for translating but didn't come with any translations. I used poedit to automatically detect the strings, and subsequently translated it in full. However certain ...
0
votes
0answers
5 views

Sorting terms individually for each post

I have a custom taxonomy named author containing multiple terms. The default output order in the front end is alphabetically. But I like the authors to be ordered individually per post, e.g. First ...
0
votes
2answers
14 views

My wordpress site take a too long time to load. How to fix it and make it very powerful running?

i have one website WWW.houseshop18.com and it takes too long time to load and make a request on server. for your kind of information i also tell you that i have godaddy hosting for this website and ...
0
votes
0answers
6 views

I want to use the GD image editor for just one function then switch back to ImageMagick

I have issues with ImageMagick generating images with transparency, they work but when I have wordpress resize them they come out a little distorted. I asked a question about this many moons ago in ...
0
votes
0answers
4 views

Check for element ID in plugin admin

I have a function that checks for an element ID if passed an HTML string $doc = new DomDocument; $doc->validateOnParse = true; $doc->loadHTML($htmlstring); // ok ...
0
votes
0answers
12 views

Daily pagination

How i can create daily post pagination? I tried something like this, but server respond me 404 error: <?php // Global global $wpdb; // Sql query $query = "SELECT ...
0
votes
0answers
12 views

adding static page under term

How do I create a structure like this on wordpress http://sample-site.ph/archives/school/arts-and-sciences/gallery shool:taxonomy arts-and-sciences:term gallery: a page i want to add as a child of ...
1
vote
1answer
13 views

Excluding a category from next and previous post links

I am trying to figure out the code to exclude a category from my next and previous post links. My code for the next and previous is as follows: <div class="next_prev_cont"> ...
0
votes
0answers
13 views

Query posts from multiple post types sorted by overarching menu order

I have three different post types named activity, publication and project. I want all posts from these three post types to appear on one page on my website ordered by an overarching menu position. ...
0
votes
1answer
14 views

Checkbox Undefined index error in Plugin

I am getting some errors when trying to create a checkbox within a simple plugin I am creating. I have a simple settings page at the moment. The errors are: Illegal string offset 'single_images' ...
0
votes
2answers
34 views

Display posts by month

I want to achieve something like this, I don't know if it is possible and what would be the best way to do it: The way I query the posts is like this: <div class="post"> <?php global ...
0
votes
2answers
9 views

Multisite wp-admin redirect loop

I have a subdirectory multisite setup, it all works fine apart from one small issue... The sites are setup in the following structure: http://domain.com/blogs/ http://domain.com/blogs/second/ ...
0
votes
0answers
6 views

Pagination on Custom Post Types filtered Archive Page not working correctly (jumps to the first Post)

This is my Custom Post Type "newyork": add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'newyork', array( 'labels' => array( ...
0
votes
0answers
17 views

WordPress ignoring LIMIT / posts_per_page despite being in wp_query

Using WP query: $myquery = new WP_Query( array('posts_per_page' => $instance['count'], 'meta_key' => 'mywp_post_views_count', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) ); ...
0
votes
1answer
7 views

How to show a gloabl message on a user profile page (in back end)?

I want to show a global message for all users in their profile page. I do not want to edit profile.php what is the hook to do this? Basically I want to add a div to show a paragraph below the ...
-3
votes
0answers
7 views

Woocommerce “All Orders” not showing “Pending” orders

as my title says my problem is that, when I visit the admin, and click on "Woocommerce -> Orders", then click on "All" (to show all orders) -> It is listing orders but not including orders which are ...
0
votes
0answers
4 views

Set featured image using wp_insert_post

// Auto post ( Unique File Date ). $postData = array( 'post_category' => array( $Category ), 'post_status' => $Post_Status, ...
0
votes
0answers
4 views

Showing “All posts” under custom top level

This is my first time making a custom Post and I noticed that if I add my custom posts on the main menu then they automatically get the "All" and "New" child objects but if I try to add my own child ...
0
votes
0answers
10 views

Do a summary based on sections in a post

I wonder if it's possible in wordpress to create a summary, let's say at the begining of the post, that displays links to all the post section ? Example: [summary title="Summary"] [section]Title ...
0
votes
0answers
21 views

Plugin Deveopment: Precautions I need to take to avoid issues

I am entering to the exciting field of WordPress plugin development. Often I see that installing of one plugin causes issues to other plugins installed or sometimes it breaks the entire site. I know ...
0
votes
0answers
10 views

Password protect a single site on network

Id like to restrict access to a single (subdomain) subsite, so that it requires a plugin to view the site... without affecting any of the other subsites. So for example if I have 3 subsites like ...
0
votes
1answer
8 views

Use post in multiple places on a page with multiple posts

I have three custom post types: workouts, news_items, and business_items. I'm trying to display the top (most recent) item from each on the home page and I'm trying to put the featured picture from ...
0
votes
1answer
6 views

Custom capability for a single user

I have this complex scenario: 1) I'll have multiple admin users. 2) Only one admin can 'see_encrypted_pass' Now, I want to assign custom 'see_encrypted_pass' capability to only one admin (say, ...
0
votes
0answers
11 views

How can I automatically add a taxonomy to my navigation?

So I have a navigation of custom taxonomies that I have added through Appearance > Menus Navigation: HOME | NISSAN | HONDA | TOYOTA | MORE Now all of those are custom taxonomies of "Types" that ...
1
vote
1answer
48 views

How to add country drop down menu to the user profile?

I've added this code snippet to my functions.php function my_new_contactmethods( $contactmethods ) { $contactmethods['country'] = 'country'; return $contactmethods; } ...
-3
votes
0answers
8 views

WooCommerce 'activated_subscription' Fires with Empty $subscription_key

I am implementing the WooCommerce activated_subscription hook and the $subscription_key parameter is always empty when I attempt to debug with xdebug and inspect the variable. Any clues why the value ...
0
votes
0answers
20 views

Wordpress Adding Lines to my Theme Files

Has anyone else noticed that sometimes, after uploading a theme, when you download it or edit it via Wordpress there are line breaks in between every line? For instance: 1 First line 2 Second line ...
0
votes
1answer
16 views

How to Manually Upload Files via FTP

I am helping a friend who has a site self-hosted via Wordpress. They have access to their FTP. Now I am familiar with manually updating files through the FTP and that is how I usually update my sites. ...
0
votes
0answers
9 views

Expanding Gravity Forms functionality

I am looking to create a "chinese auction" website. This is a method of fundraising where prizes are auctioned off and people purchase tickets on the website and put them towards a prize(s). Gravity ...
0
votes
0answers
8 views

Embed google alerts rss feed into WordPress site

adjustment on my origonal question. How would I go about adding a new widget area to my current template so I can embed a google alerts rss feed? Cheers for any suggestions / solutions
-1
votes
0answers
11 views

Add fee with same tax class as product in cart

I have store where customer can buy only 1 item at the time that means there will be no more than 1 product in cart. All my products have different tax class. I need to add fixed fee and also apply ...
0
votes
0answers
11 views

What is wrong with my blog post text? [on hold]

On my blog post page, the text is getting completely botched up in the posts. If I enter the actual post and view just that one, then it is fine, but if I am actually on my blog post page (the one ...
0
votes
1answer
13 views

Single post full screen template not inheriting worpress role permission

In addition to the normal single post view on my website, I added a full screen version of the post with entirely new set of styles. In this full screen option, everything is removed except ...

15 30 50 per page