0
votes
1answer
20 views

How to automate wordpress plugin activate and deactivate by php logic?

Is it possible to build logic to control the activation and deactivation of specific wordpress plugins , for example Activation/Deactivation triggered by time period? thanks for knowledge sharing.
2
votes
2answers
243 views

Convert a static website to a WordPress theme and import all existing content

I have one site that is built with html, css and javascript and has no CMS. It looks great and my client would like that site to have wordpress in the background so he can easily modify the content. ...
0
votes
0answers
8 views

WP-Ultimate-Search : order results by their content

I'm using the plugin WP-Ultimate-Search as a search engine. It searches through my articles, by tags. My articles don't have title, and I'd like to order the results by article's content. I'm using ...
0
votes
1answer
20 views

Custom PHP endpoint for a plugin's AJAX call

I am writing a plugin for the first time, and I have a problem. I am using AJAX in my plugin. My JavaScript file is in the folder ../wp-content/plugins/myplugin/js/ , and in it I am trying to call a ...
0
votes
1answer
6 views

Best way to sort posts with different types by distance

I'm working on a project that I need to We have x posts, 1 Sponsored (custom meta field), unlimited paid, unlimited free posts (these are types of posts) We need to show 1 sponsored at top, ...
0
votes
1answer
29 views

How to visit php file in my custom directory under site root directory

I hope to create a directory wp-mybiz as same level as wp-content, wp-admin, and wp-includes under site root directory to collect my business logic codes. But if I try to visit php using url http://...
0
votes
1answer
20 views

Create a WP_Query where if the first value of the first row is equal to the second compare other value

I want to create a query of a custom post type where the order is by a custom field and I want if the custom fields are equal to compare a second custom field. $args = array ( 'post_type' => ...
1
vote
0answers
12 views

Change file name from wp_generate_attachment_metadata

I'm pretty new and just have a hang on how wordpress data flows internal. I am confronted with applying a b/w filter on upload. no problem. I found the wp_generate_attachment_metadata filter and ...
0
votes
2answers
20 views

How to set page title tag in custom template for non-Custom Post Type?

I have this code in my custom template file: <?php /* Template Name: custom-template-view */ ob_start(); get_header(); function assignPageTitle(){ return "my page title"; } add_filter('...
-1
votes
0answers
20 views

What function generates title=“dynamic css”?

I'm fairly new to wordpress and faced this problem: I want to move pure css code to .css file and even used plugin called "Better WordPress Minify". It did some job minimizing but some code pure css ...
-1
votes
0answers
13 views

What is the best practice to make a complex wordpress theme? [on hold]

I have made simple html templates so far but in case of a highly advanced Wordpress theme with a lot of UI elements, how to do the planning stuff and wireframing? Are there any special tools that ...
0
votes
0answers
17 views

Add an accordion - like the one on the Menus page

I want to add an accordion to a custom dashboard option page, like that in WordPress Dashboard -> Appearance -> Menus -> Pages: I've tried many ways to do this but failed. Is there any function ...
0
votes
1answer
15 views

Callback function quicktags that uses variable in start tag

I am trying to make a callback function that returns on click of a quick tag wordpress button dinamical generated variables inside the tags. Something like QTags.addButton( 'eg_wrap', 'WRAP ARROWND',...
0
votes
0answers
9 views

WooCommerce Get All Products as key value pair

Hi am using following function to get all my products to show in a selectbox as a key value pair. function get_product_list_as_key_name(){ $args = array( 'post_type' => ...
0
votes
2answers
27 views

Deleted Page Still In WordPress Database

After permanent trashing/deleting a previous page with the same permalink, I still can't make a page save its permalink without the "-2" added to the end. How should I solve this problem? Choosing "...
-1
votes
2answers
28 views

How can you alter the name of attributes in a shortcode?

I'm trying to write a shortcode for a button, here's how it looks /** * Button Shortcodes */ function btn_shortcode( $atts, $content = null ) { $a = shortcode_atts( array( 'class' => ...
-1
votes
0answers
7 views

Banner Maker/Editor Plugin Options [on hold]

does anyone have any recommendations for a Banner Maker/Editor similar to this: https://codecanyon.net/item/wp-pro-visual-banner-creator/? I'm just looking for options. Thanks in advance!
0
votes
0answers
17 views

Custom permalink structure for standard Wordpress posts only

I know, I know...it's another permalink-related post. I've been racking my brain, searching this site and Google as a whole and cannot find a single answer to this. I'm getting extremely frustrated ...
0
votes
4answers
34 views

Can I manage content of my custom site using wordpress?

I might be asking a really dumb question but I want to know for sure whether or not I can link wordpress to my own site(own domain with own interface - not theme) and edit content in it. My site is ...
0
votes
0answers
18 views

Restrict access to Buddypress private messaging system [on hold]

How can I restrict access (to a role or an user) to Buddypress' private messaging system? I was trying to use the current_user_can Wordpress function, but it requires the capability as the argument. ...
0
votes
0answers
15 views

How can I make a bunch of routes point to the same page?

I have a post to which I would like many routes to point. I tried the rewrite rule: add_rewrite_rule('^resource-center/(.*)$', 'index.php?p=2529', 'top'); But every time I go to a URL which matches ...
-1
votes
3answers
36 views

Wordpress site with embedded menu - gives You don't have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server

I've inherited a website which has a menu structure that is not working. he developer built a site at huge expense but has then left them with a partially working site. It is a WooCommerce site with ...
-4
votes
0answers
13 views

Instagram post embeds don't show image

On my site the Instagram embedded posts don't show images but they show hashtags. What could be the issue? Console Dump: JQMIGRATE: Migrate is installed, version 1.4.1 chrome-extension://...
0
votes
1answer
13 views

How to loop over wp_get_themes() and create an array of themes name

So wp_get_themes() returns an array of objects : Array ( [WpAngular] => WP_Theme Object ( [update] => [theme_root:WP_Theme:private] => /home/love/Web/web/...
0
votes
1answer
20 views

meta_key and meta_value not working together

I am trying to filter the loop to find posts that have a meta_key with a specific meta_value. I've looked at the Codex, and I've tried the following with no luck: // No results $args = array( '...
-2
votes
0answers
26 views

Siloing with wordpress - For professionals only?

want I want to do: I want to change the structure of my website. I have two custom post types(CPT) "car", "bike" and a blog. I am using CPT UI Plugin for the custom post types. But I don't get ...
0
votes
1answer
16 views

jQuery plugin not loading

I am trying to use the below function to enquue 2 scripts (one internal, one external). The internal one ('custom_script') is working, but the 2nd one ('formValidation') isn't (I get a 'validate() is ...
0
votes
1answer
14 views

how to add custom wp_nav_menu class css selector to ul and a tags?

crafting a theme from finished html/css markup and wonder how to wrap a tags in my custom class? With ul wrapper this is works: wp_nav_menu( array('menu' => 'menu-...
0
votes
2answers
16 views

No Object Properties sending form through AJAX

I'm using a Using modal window with + form to change the profile avatar. Like the following (functions.php): add_action('change_avatar', 'edit_avatar_function'); function edit_avatar_function($uid, $...
0
votes
1answer
21 views

How are readers authenticated for leaving comments?

I'm thinking of creating a WordPress blog, not on WordPress.com but just using WordPress on a hosted website. I would like to allow comments on the blog, but was wondering in what way are commentators ...
-3
votes
0answers
15 views

difficulties creating Houzz like gallery page

good day wordpress fellows!!! I’m an architect designing my own website, so far, I short of Gallery page. I want nothing but almost similar Gallery as houzz gallery. it’s been 3 months trying to ...
-2
votes
0answers
9 views

How can I get just the title of a custom post type based on the date custom field? [on hold]

I'm converting a closed CMS site into a WordPress site and they have a good "plugin" to show just the title of the Lunch of the Day on the front page (see http://sirkanleipomokahvila.fi) and the ...
-2
votes
0answers
11 views

Display individual fields from Gravity Form

I've created a Gravity Form with 8 fields, all of them numeric. I want to have full control over each field, so I don't want to use the function for embedding a field. Is there a function for ...
0
votes
0answers
31 views

Wordpress redirecting after login to /wp-admin

I have some troubles with my custom login. I got alwayas redirect to /wp-admin but I want to get back to the same page. I've tried some solutions around google but nothing realy work for me. So her is ...
-2
votes
1answer
16 views

How to avoid conflict between plugin and its edited version?

I currently use a WP pludin, let's name it "PopUp_WP". I downloaded its opensource code. Then edited/customized lightly that code. Next, I want to disable "PopUp_WP" and add "PopUp_WP-edited" to my ...
-3
votes
0answers
20 views

How to show map using the following code?

I am using following code to show map on contact page.But it is not showing up.How can I resolve this problem? add_filter( 'rwmb_meta_boxes', 'your_prefix_map_demo' ); function your_prefix_map_demo( ...
0
votes
2answers
48 views

How to add custom variable in url without redirect?

I'm trying to add a local variable to my URL. As an example I have this URL: mysite.com/my-page-name/ And I want to add 'en' variable into it and leave the page working properly: mysite.com/en/...
-1
votes
0answers
29 views

How to Hide a Particular website page URL from Search engines?

I don't want these links to be shown while searching in Google. How can I achieve this in WordPress? I have tried with Disallow in robots.txt and it's not working.
0
votes
1answer
18 views

Add theme templates for child categories into the template hierarchy

in my site i have many category and subcategory (child category) say like my one category name Printing - 4 color - 2 color - offset print Exmple i want when visit 4 color category page it ...
-1
votes
0answers
9 views

Sync Event Calendar in Multisite

I am working on a multisite where we have child sites for Event Organizers with Event calendar pro installed, and the main site. I am looking for a solution to sync the Event Calendar from the ...
1
vote
1answer
14 views

How can I create a list of page titles from custom meta values?

I want to associate pages with other pages by using custom meta values. For one page, I want to associate two other pages, so I create a custom meta value with the key Procedure and the value of the ...
-1
votes
0answers
15 views

Question On Interactivity Help [on hold]

I've come across a roadblock because I'm trying to create something interactive, I don't know much coding skills so I'm using the best I can with plugins. Simply said, I'm trying to do the following: ...
2
votes
2answers
34 views

post expire after x days

I want to create a code snippet for expiration of post after x days from the post published date, I tried with this code but I always displays the true condition, what am I doing wrong? $pfx_date ...
0
votes
0answers
19 views

wordpress wrap every 3 posts in a div after the very first post in a loop so that the fist loop is a featured post [duplicate]

I want to add every 3 posts in my index.php file in a row div but I would like to exclude the first post so that I can style the first post differently. I currently have the loop working for every 3 ...
-3
votes
1answer
14 views

Woocommerce - charge shipping for each item individually? [on hold]

If someone wants to buy two of the same red hats, the shipping cost will be added twice. rather than one shipping price for the whole order, the shipping will be per item. if there are 5 items, the ...
0
votes
0answers
14 views

WordPress plugin checkbox check help

I am currently trying to learn how to make a fairly simple plugin. However, I am trying to make it a little more complicated and streamline the code as I go. I am currently trying to make an array of ...
3
votes
1answer
251 views

Authoritative answer on which boots first - Plugins or Themes?

I can't seem to find anywhere in the WordPress documentation an authoritative answer on the question on whether a WordPress plugin boots first or whether a WordPress theme boots first. I need to know ...
0
votes
0answers
19 views

Server errors after going live

I prepared the relaunch of our website from another CMS to WordPress. So, during the preparation, the installation was in a password-protected folder. Everything worked well. After going live (rename ...
0
votes
1answer
28 views

Category Name and Slug field need to be the same otherwise it breaks category pages

On our WP install we have Topics pages which pull together any content which has been tagged with that topic. Standard. When we visit the topic admin page and edit the Name field (so it's different ...
0
votes
1answer
19 views

searching for members in wordpress

I have custom fields setup in S2MemberPro, lets say they are these: memberid phone referredby I want to search the custom fields if searching those fields, and if searching the normal fields like ...

15 30 50 per page