0
votes
1answer
15 views

how to create table during plugin installation in side a class

I am creating oop base plugin. So how to create table during plugin installation in side a class.But I could not create table. This is my approach.What wrong with me. class Notification { ...
0
votes
1answer
22 views

get all remaining posts after a partcular post id

We all know and its easy to get posts using wp-query. We can filter, orderby etc. I am in a situation, i would like to get all remaining posts after a post id, say 100. So what i need is to get all ...
0
votes
0answers
16 views

Wordpress CORE API - plupload

I've create a form for upload image from frontend but i do not know how can use plupload "Core API" http://plupload.com/examples/core Look the code below. <!– HTML – upload photos –> <div ...
0
votes
0answers
10 views

Client portal/Custom Users

Here is my problem: I have to create a client portal that shows some parts of the website to the logged users, and I prefer to do that without a plugin (like WP-Client). I need to import client data ...
0
votes
0answers
22 views

does it need any special functions to write in function.php?

does it need any special functions to write in function.php of template for single-{post_type}.php? I created a custom theme , but it does not move the single-{post_type.php}, my page is ...
2
votes
1answer
26 views

How to order by post_status?

I'm using get_posts() like this: $posts = get_posts(array('orderby' => 'post_status')) which is not possible cause it's not in the allowed keys in the parse_orderby() method How to get around ...
0
votes
0answers
12 views

How to list posts of a given format

I want to create new urls in my wordpress that list posts of a given format and category. I thought the url structure would make sense to be like this: /[post-format]/[category], i.e.: ...
0
votes
1answer
14 views

Expandable WordPress content (text) inside a post

I've created a CPT in my WordPress site. In this CPT I have the content element (which is the default WP content) and want to make it expandable, I mean, while viewing the CPT I want it to only ...
0
votes
0answers
5 views

Force reauthentication/login for specific page for currently logged in users

I have a page that searches user information. The site is a record keeping site. I want it so that when people click the "View Records" link that they mus re-authenticate before proceeding. I'm not ...
0
votes
0answers
7 views

wp_list_table, jquery get the value of the checkbox

Hello i'm trying to make inline edit for my wp_list_table. but i've hit a brick wall. the thing is that each elemement/td is made up off 2 class column example: <td class="name column-name" ...
0
votes
0answers
11 views

plugin generated 4 characters of unexpected output during activation

i write code for plugin create my own custom table in wordpress db but they show my the error "The plugin generated 4 characters of unexpected output during activation. If you notice “headers already ...
2
votes
1answer
11 views

WordPress and automated MySQL backups to a different host

I'm having the following setup. A development computer in my local network and a production server with a real internet domain. Developing the PHP/CSS files on my dev computer for my theme is handled ...
0
votes
3answers
25 views

Featured Image not showing in admin

Currently im making new theme and had the idea of adding featured image in the admin side of wordpress, unfortunately its not working this is what i have tried I have added this code in functions.php ...
0
votes
1answer
20 views

New custom nev not working

I am suffreing from an issue from last few days. I have to create a custon nev calls ribbons, that will have some custom functionlity but at the starting steps I am not able to create the nev pages. ...
0
votes
1answer
12 views

`tinyMCE is not defined` after migrating site to server

After migrating site tinyMCE (text editor) top bar have disappeared & text color have changed to black, I am getting 4 errors in concole and below is a snapshot of it. I am using WordPress ...
0
votes
0answers
11 views

error in uploading any kind of file in wordpress

I am getting problem at the time of uploading any media file or plugin. I have changed the permission of wp-content and plugin and upload folder in 755. Still I am getting the same problem. In ...
0
votes
0answers
7 views

Does anyone know how to setup woocommerce with s2member?

I have just started a project where i did this in wordpress: installed woocommerce installed wc vendors -> this helps in making members in the site become vendors installed s2members -> need ...
0
votes
1answer
18 views

Include Buddypress & bbPress styles/scripts conditionally

I'm working on a custom theme that uses Buddypress and bbPress to add social network functionality. I've noticed that both plugins css and js (many files) are loaded on every page, even though none of ...
0
votes
1answer
15 views

new post link leads to 404 error page

Whenever I try to add new posts or pages, or edit posts or pages from the admin menu, from the front end or even from the all posts and all pages lists, I can't. I'm always taken to a 404 error page. ...
0
votes
1answer
22 views

Wordpress C# User Login

I have a very basic C# login system first i've work with localhost and basic databasebase username-password but now i want to connect my project to my website which is wordpress then i realize ...
0
votes
0answers
8 views

WP Canvas Galley plugin

I have installed the plugin and created the gallery, but i do not get the actual images displayed. When inspect the element, it seems that the gallery is there, but images not. Plus I could not get ...
0
votes
1answer
45 views

Related posts with WP_Query

I'm stuck with the related posts querying. I need the related posts to be displayed with any depth from the main parent. I have the following structure categories on my website: - Category level 1 -- ...
0
votes
1answer
22 views

How to get authors avatar

How do I get the authors avatar? Buddypress plugin or any plugin. I have found this inside my PHP code: "<i class="fa ...
0
votes
1answer
12 views

I have index.php and other files, how do I display other pages?

I'm converting an HTML theme into WP. I have index.php, header.php, footer.php, which are from HTML. Then I created pages from within admin area like about-us etc. Created a menu and linked those ...
0
votes
0answers
13 views

Wordpress editor filters out my data from $_POST

I am currently working on a translation plugin in Wordpress. I added a navigation bar on top of the editor like this: add_action('edit_form_top', array($this, 'add_tabs')); In that function, I add ...
0
votes
0answers
10 views

Local Wordpress install plugin wont upload image

So what I have going on is a plugin I am using (simple ecommerence) is not uploading an image locally (using MAMP). This is what I have tried so far: The plugin uploads all the content (name, ...
0
votes
0answers
20 views

Use one column per category

I dont typically do wordpress development, though I am a PHP developer, so I get those concepts. I apologize if this has been asked and answered already. I looked through the questions as they ...
-1
votes
0answers
28 views

Return array of values in php

So, following is used in a shortcode: [my_shortcode dfd_name="Steve"] if(strstr($key, 'dfd')) { $metaquery[] = array( 'key' => $key, 'value' => $val, ...
0
votes
0answers
14 views

Wordpress / Woocommerce custom registration fields

I am learning php and I am creating simple registration plugin for wordpress and woocommerce. Everything works like a charm for wordpress but not for woocommerce. As you can see for woocommerce ...
0
votes
1answer
20 views

WP_Query with meta_value LIKE 'something%'

I have read several questions like this (for example, this), but no equal. I WP_Query need to perform a LIKE on a meta_value. My problem is that I want the like is as follows: meta_value LIKE ...
0
votes
1answer
17 views

Twenty Fourteen: how do they populate by default the sidebar?

My question is pretty similar to this one: How can I insert default widgets when my theme is activated (similar to what twenty eleven does)? Except that it's for Twenty Fourteen. I'm trying to use ...
0
votes
1answer
43 views
+50

How to iterate within Magic Fields Group foreach loop?

Okay so I'm using Magic Fields 2 on an old WordPress project (rather than ACF unfortunately) and I've got some confusion happening while I'm writing PHP. Basically I'm on a page template that calls ...
0
votes
0answers
4 views

Grab Current URL & Add to Cart Woocommerce

I have been researching of a way to do this but have been unable to find an answer to my question. There are answers on there on how to grab the current URL etc but it is not the answer I was looking ...
0
votes
0answers
6 views

Update wp.media state (mainly order) of images in Add Media Modal

I have to mimic a feature that was part of Wordpress 3.5 but was removed in Wordpress 4.0. When I am seeing the files uploaded to a post in the Add Media Modal, if I chose "Uploaded to this post", I ...
0
votes
0answers
10 views

Add new WordPress user to MailChimp list

There is a lot of plugins to integrate WordPress with MailChimp. But none of them allow me to add new user's email to MailChimp. Can anyone suggest one?
0
votes
2answers
21 views

When migrating all backslashes were stripped and special signs are converted in html entities

I'm migrating my wordpress-blog and so imported my complete content with WordPress Importer 0.6.1. (which is the latest today (July, 2th 2015). My mySQL-server version is 5.1.56-community. ...
0
votes
1answer
12 views

Qtranslate seems to be incompatible with my site

I have been using Wordpress for about a month now, and have been using qtranslate-x in order to have my web content in French and English. It has been working well, but today my site is no longer ...
0
votes
0answers
10 views

Rewritten URL not loading WordPress environment

I have a page that I am sending users directly to so I can serve them a PDF dynamically created using the FPDF library. Since I'm sending them directly to the file which generates the PDF, I'm ...
0
votes
2answers
24 views

Should non-WordPress data get its own DB?

I couldn't find anything on Google or on here about best practice for data that is not really Wordpress related. Say we have a database of clients that we'll be accessing through PHP/SQL. Should I ...
0
votes
1answer
17 views

Wordpress Prevent 404 on missing custom post

The thing I am trying to achieve is to get data from a third party data source and display each piece of information as if it was a "post" in a WP theme. Now, the WP theme intrinsically works with ...
0
votes
1answer
9 views

Opening protected page with cookie?

I'm working on an app that uses WordPress for user management. After login, the app holds the auth cookie. How can I use that cookie to open a web view of a protected page within the app without ...
0
votes
0answers
7 views

How to create MultiStore?

I've read something from you explaining how to create a multistore using multisites. I im starting a project in which I need to be able to open multiple stores with the same or similar products. And I ...
-1
votes
1answer
28 views

Shortcode leads to white screen

I have this code to show news in block. but when include this code in functions.php to call it in shortcode. It show me white page and not show me any error. So where is my error? For some reason, ...
0
votes
0answers
19 views

WP REST API Basic authentication not working

So I have https://wordpress.org/plugins/json-rest-api/ and https://github.com/WP-API/Basic-Auth installed in my wordpress. Going to something like /wp-json/posts works fine. However when I try to go ...
0
votes
1answer
15 views

Changing the search results destination URL

Sorry for the basic question, every Google query I try yields no useful results. How do I change the search results directory in Wordpress? Currently all searches need to be on the root to produce ...
1
vote
1answer
25 views

How to connect two custom post types with nested loops

I have 2 custom post types created: "classes" and "teachers". I have created using Advanced Custom Fields plugin a field for "classes" custom post type, a multiselect that helps me add certain ...
0
votes
0answers
11 views

How to check for dependencies for a specific page and enqueue them

I am creating a one page site where the content of the sections (separate pages) above and under the actual page section are lazy loaded via AJAX. Say in one of the pages a shortcode for a gallery ...
1
vote
0answers
15 views

getting the current sub item out of total sub items in a given dropdown (custom walker)

i would like the possibility to append a text(denoted in square brackets) to each sub-item in the menu like so: Parent 1: sub-item [sub item 1 of 5] sub-item [sub item 2 of 5] sub-item [sub item 3 ...
-1
votes
0answers
10 views

worpdress Custom url rewrting for a post or page

I have website with one post id=103. www.sample.com?p=103 i have hyper links in my itemlist from webservice,not a product of wordpress. I need the url i am already generating on ItemList ...
1
vote
0answers
11 views

Automatically Add New Tags to Sub-menu

Been searching for any related plugins or info. about this case but didn't find anything relevant or working. I need every new tag that is added to a post automatically appear in a menu as a sub-menu ...

15 30 50 per page