0
votes
0answers
6 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
0answers
4 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
6 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
4 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 ...
0
votes
0answers
9 views

WordPress: Why shortcode show me white page

I have this code to show news in block. but when include this code in function.php to call it in shortcode. It show me white page and not show me any error. Sow where is error.?? For some reason, ...
0
votes
0answers
9 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
0answers
5 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 ...
0
votes
0answers
15 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
7 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
6 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
7 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 ...
2
votes
0answers
11 views

sort by date in Advanced Custom Field

I am trying to filter posts with certain values and sort by the date field using ACF module. I have succeeded in filter with package and type. But when i added date sort, its not working. Please help ...
1
vote
1answer
19 views

How to add a user profile page to frontend?

I am looking in using wordpress for ecommerce by using woocommerce, as a newbie i don't know how to set up a user profile page outside wordpress installation (so the clients don't see the back end ...
0
votes
1answer
25 views

Change the location of add_theme_support( 'custom-header' ) in the customizer

I'm using add_theme_support( 'custom-header' ) to upload images for an image slider. The slider also has other settings in the customizer (duration, fade, overlay color, etc). Because there are ...
0
votes
0answers
9 views

Add field to the search box ¡

Hi I have a custom post type, and I want to add a field to the search form. For example a simple dropdown. I don't find any actions or filters. Anyone knows how can I add this field? Thanks a lot
0
votes
1answer
11 views

Set post tags using tag ID

I want to set post tags to a new value. Is there a way to use the tag ID to do it? The wp_set_post_tags only accepts the tag name or an array of tag names. <?php wp_set_post_tags( $post_ID, $tags, ...
0
votes
1answer
10 views

directorypress theme error mysql_error()

I installed directorypress theme to my wordpress site all works fine except this section " my purchase history" its sql error, but I can't deal with I want to remove this error or hide the link " my ...
0
votes
0answers
18 views

Multiple custom post types showing up in edit.php

I'm having a bit of trouble (i think) over custom post types in Wordpress. I have created multiple post types and they all work, but there is this one thing which is bothering me. Lets say I have ...
1
vote
1answer
10 views

How do i display custom taxonomy tags that are tagged to only pages that have a specific page parent?

I would like to use Using the WP_Query or Query_Posts method. I'm currently using the query_post method. $terms_array = array(); if ($strurl == "somesite.com"){ $resparent = "18219"; //Page ID ...
0
votes
1answer
10 views

Custom post type URL - filter by taxonomy

Created CPT = news uses default categories (IT and recruitment) I am struggling to view an archive of the posts based on their category mysite/news/ - shows all posts for that CPT whatever the ...
0
votes
0answers
11 views

How to prevent shortcode preview from breaking in tinymce editor?

I am creating visual preview for shortcodes (just like captions). I have don't most of the parts but my preview html is getting broke by the editor when post is saved. I have investigate it further ...
0
votes
1answer
14 views

Including some variables in function.php and echo them is several place of theme is not working

I am creating a custom theme based on _S blank theme. I created a php file named aa-config.php with set of variables, then <?php require get_template_directory() . '/inc/aa-config.php'; ?> this ...
0
votes
0answers
6 views

wp_set_auth_cookie cannot remember login

My code: namespace OKVOAuth\MyConnect; if (!class_exists('\\OKVOAuth\\MyConnect\\Google')) { class Google { use \OKVOAuth\Library\OptionsTrait; public $use_google_login ...
1
vote
1answer
9 views

Programmatically (PHP) get the nr. of items in the primary navigation menu

I need to get the nr. of items in the primary navigation menu. I need this to determine the width in percentage of each list item. So I also need to change/add to the css width attribute of the list ...
0
votes
0answers
12 views

Setting up LAMP and Sendmail to enable WordPress emails on localhost [on hold]

How to configure LAMP server on localhost to send email using SMPT.
0
votes
1answer
13 views

Preg_Match(): compilation failed unknown property name

I'm having a problem with a wordpress theme I bought but their support is terrible. On every post page, I receive this error: Warning: preg_match(): Compilation failed: unknown property name after ...
0
votes
3answers
29 views

jQuery no conflict

I just want to once and for all get some clarity on jQuery within Wordpress as I can never remember from one project to the next how things should be done. The particular example I am talking about ...
-1
votes
0answers
6 views

I want to create 'my-page' or 'user-page' and Mixing the pages

help me! plz In wordpress I wnat that would you like to show me sample code that create 'my-page'(./member/username) without the use of plugin. and that come out on 'my-page'(./member/username) ...
2
votes
1answer
27 views

Ignore/Skip default value on orderby menu_order?

Is there a way to query all pages and order them by menu_order but ignore those pages that the default value of 0? I was trying to do something like this: $the_query = array( ...
0
votes
1answer
12 views

Add video tag to youtube link fron content

I have variable $post->post_content that return me detail of post and some video URL from YouTube. I need to remove any text from $post->post_content else YouTube link, And add to YouTube likn ...
0
votes
1answer
12 views

WordPress post submit page

How to create a custom page in WordPress To submit a post? Where registered users can submit their post?
0
votes
1answer
7 views

Meta Box multi checkbox in template

I've used this check meta box in my functions.php but I don't understand how I can get the meta data. I'm trying to output if a product is still available or not. Metabox setup: /* Array of the meta ...
-1
votes
0answers
11 views

show new Gravity Form based on selected radio button

I have a Gravity Form which contains some data fields and 3 radio buttons. I want to redirect user (after form submission) to a new Gravity Form based on the selected radio button. How I can do this ? ...
0
votes
0answers
2 views

Changing a button label of WP_Customize_Image_Control() doesn't take effect

I tried to modify the Customize Image Control class and replace the instance of 'default' => __( 'Default' ) with 'default' => __( 'NEW LABEL' ) and re-classname it like this: class ...
1
vote
0answers
9 views

Create a PDF from the rendered post (like displayed in the browser)

I would love to enable our co-workers to download single posts as PDF files. Problem is that every PDF solution I've seen only exports the posts text, but leaves out all the stuff that's rendered or ...
0
votes
1answer
9 views

Problem after updating plugins

So today i updated my plugins, everything went smoothly, but later i found out that my website is messed up. All the custom taxonomies are gone, then one of my plugin disappear somehow. I tried to ...
0
votes
1answer
13 views

Trouble with Wordpress Ajax Login System - 302

I'm trying to create a simple Ajax Login system with Wordpress. Unfortunately, every time the "wp_signon" function is fired, my system failed and the only information I have is this one : POST ...
0
votes
0answers
21 views

return array when using shortcode

I create my own custom table and and retrieve data and save in to the array variable $take. now when i display this using print_r($take) it will show my all records. but i try a lot to return this ...
0
votes
0answers
9 views

How do I add files into a new folder and keep wordpress page /slug/?

We needed a sub-site on our domain so it would look like domain.com/newsite Due to the instructions of a technician looking after the server, I made a new subsite under my wordpress site by the ...
0
votes
1answer
22 views

Worpress.org forum profile block & any contact Email

I working on wordpress.org forum now recently generate issue for my forum answer not display to another member. Reply from moderator: It seems your posts have been picked up by our spam protection ...
0
votes
0answers
14 views

Custom Role accessing the wp-option table

I'm using a plugin that create an additional record in the wp-option. Everything is great with the admin account, the record can be save and update. But I'm stuck with allowing one of the custom role ...
1
vote
1answer
18 views

Get new Wordpress slug from old wordpress slug

I have implemented a shortcode called post which contains an attribute src which has link of an of page [post src="http://www.listenmoneymatters.com/the-betterment-experiment/"] Currently, this ...
0
votes
1answer
12 views

captiva Theme Error

I have Install Captiva in my system local.its showing error like this Warning: POST Content-Length of 36013235 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 Are you sure you want to ...
0
votes
1answer
6 views

Multisite authorization error 401

I have created a site on my wordpress network , but when I tried to access the site or dashboard it asks for username and password . Though I didn't create any authorization password (http pass) for ...
0
votes
1answer
12 views

Retrieving plugin options value saved through setting

Looking at this code below it work add options perfectly and saved them. However I will like to use those data at front page in my plugin short code. class MySettingsPage { /** * Holds ...
-1
votes
0answers
11 views

Form Plugin Theme Style

Hi I have created some forms with the ninja forms plugin. When I insert the shortcode into a page its not picking up my themes style. It looks pretty bad. Just wondering if there is a step I may be ...
0
votes
1answer
21 views

Include Class File in Wordpress

I'm including a Class file in functions.php file require_once get_template_directory() . "/core/classes/General.php"; require_once get_template_directory() . "/core/classes/User.php"; When I do ...
1
vote
0answers
13 views

CPT Validation to not show “Post updated.”

Now this has been asked several times over on all WP forums, but how you change the success message? First, I know there are 2 choices for managing the error message: setting in the options and using ...
0
votes
0answers
11 views

Youtube Iframe Api play one video at a time

Below is my code and only video 1 can stop video 2 but video 2 can not stop video 1. I want one video to play at one time. What could be the reason and i am using shortcode and below is my code in ...

15 30 50 per page