Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Modifications to theme and plugin files to create new functionality.

0
votes
1answer
10 views

How to Disable option of meta field if that option is selected for any other post in custom post type?

I'm working on a custom post type with a custom meta field post type (like post formats). I'm able to save and retrieve the post according to the meta key values. But the problem I'm facing is how to ...
2
votes
2answers
17 views

Intercept invalid email during lost_password

On the website I'm developing, I need all login-related forms to be on custom, branded pages. I have pretty much covered them all, but I have just one case I can't manage correctly. I have set a ...
0
votes
0answers
14 views

What is the best approach to create Pages with same Page Template but different post types?

The goal is to have something like this below in Wordpress: Three pages : Cars Movies Fruits Three Post Types cars_posts movies_posts fruits_posts Each Post Types have multiple posts ...
0
votes
0answers
18 views

I want two home pages in Wordpress

Dears! My question is: I designed a website in Wordpress, infect I want a landing page,user type my website address , website should open and there is a login button at this page, after pressing ...
0
votes
1answer
11 views

wordpress custom posts page not showing

In Wordpress I created 2 templates : The first template is a custom homepage The second template is custom page for for post results(search by category, search by keywords) After that I specified ...
0
votes
0answers
14 views

Need to insert custom shortcode to replace theme search

I'm using ajax search pro and the replace search feature (which replaces current search with new ajax isnt working.) I'm trying to replace it but I'm not 100% where to put the short code. Theres a ...
0
votes
0answers
14 views

Need help displaying custom labels before prices in Woocommerce

Good Afternoon StackExchange; I am needing a bit of help on figuring how the proper php code to achieve the label set up on various products throughout my woocommerce store. Basically what I am ...
0
votes
0answers
17 views

Changed my homepage from latest posts to static. works fine on desktop. on mobile it reverts straight to blog posts page

Hello there as per the title.. i just cannot seem to get to the bottom of this. i've cleared cookies etc on my mobile .. i've asked friends to try on their mobiles also.. same problem. much ...
0
votes
1answer
8 views

Get the password key when using the wp_new_user_notification_email filter

I'm trying to customize the email sent to newly registered users. I use the wp_new_user_notification_email filter in a plugin, and it's working fine to set the subject and message. However I would ...
2
votes
1answer
14 views

Last post is not showing up

I'm developing a custom template for a customer that wants in his website the possibility to filter posts by month. After creating an archive.php page and placing the widget "Archives" in my sidebar I ...
1
vote
0answers
11 views

How do i get post content after the click of the each sub tab of the parent tab?

I'm working on the custom template in this page I have added the JQery Tab in the, now how do I get content of each sub tab after click on it? I have created Custom Post Type in the admin panel ...
0
votes
1answer
4 views

How to change custom link of subpages from of localhost to website

I've created website using localhost. So while adding custom link of subpages like contact us or about its taking url of localhost instead of website like localhost/priyanka/about-us/. So how to ...
0
votes
0answers
5 views

Add to search posts query array with post IDS which will appear first

Is there a way to add array of post IDS to set posts to be on top of search results? Something like adding a param top_post_ids inside the search hool: $query->set( 'top_post_ids', [45, 78, 94 ] )...
0
votes
0answers
15 views

Remove [gallery] shortcode and print html

When create new gallery from "Create Gallery" in Media into a plugin I need remove the shortcode [gallery ids="...,..."] that it print after loading and selecting photo action in text editor with a ...
0
votes
1answer
9 views

How to restrict the user from viewing comments but with option to write comments?

How to restrict the user from viewing comments. the regular user can only write comments but only the administrator can see all the comments? if is there any plugin or other solution I'll be grateful....
0
votes
0answers
18 views

Wrap WordPress Login Form in custom Div

I'm customizing the WordPress login form with the help of the WordPress Documentation. I'm using the described filters to alter the appearance of the form, mainly by injecting new CSS styles. I'd now ...
0
votes
2answers
7 views

Link to a new page into a plugin

I am developing a new plugins, I added a new admin page menu with: function ca_admin_link() { add_menu_page( 'Checklist Artistas', 'Checklist Artistas', 'checklist-artistas/includes/ca-...
1
vote
0answers
20 views

Check Title Unique Or Not and If not error message and dont save

i am get tired from searching 2 days for what i wanna i have 'area' custom post type have Title and another field i wanna the title of area is unique if the user enter title 'area1' and this title ...
0
votes
0answers
4 views

Statically populate menu with childs

My problem is very simple. I want to add all pages and subpages of a given parent page inside a menu. The problem is that the few plugins I found for this purpose, JC's Submenu or Gecka Submenu, do it ...
0
votes
1answer
17 views

Publish metabox postition?

On my custom post type when browsing the site on mobile the Publish metabox will land above other metaboxes. I have changed the position and priority of almost all metaboxes to counter this issue. But ...
-1
votes
0answers
13 views

How to add custom html or shortcodes into landing.php (Blog template)? [duplicate]

How do I add a custom HTML and a shortcode into a blog template in OceanWP WordPress theme? I not able to figure out a way to add it to the top before any content starts?
0
votes
3answers
60 views

Automatically reject a comment if website field contains anything

I've done a bunch of searching but can't seem to find a hack to do this, all I can find is how to remove the website field from the form. I want to leave it there, but if someone enters a url into the ...
0
votes
0answers
12 views

“Single sign-on” to extend beyond Wordpress

I am still very much a beginner with all things programming, including Wordpress. I have been having a debate with several developers on whether or not to use Wordpress for my project. I have decided ...
0
votes
0answers
11 views

load more portofolio page wanted

i want to put a load more in this code portfolio page, how can i do that? the pictures is big and the site is slow <section class="section white-section portfolio-padding-top-bottom-1"> <...
0
votes
0answers
15 views

how do i add a subscription form to all my blog posts using the landing.php Template in oceamWp?

I am using a sendinblue plugin for my subscription forms. I have a short_code and I want it on top of all my Blog posts. I tried to add it to the landing.php page like bellow <div id="content" ...
-1
votes
0answers
13 views

Create a Fundraising Site for School Groups

Apologies if this is not the place to ask such a question. I am a high school teacher and yearbook adviser. Fundraising is a way of life for us. I'd like to make it easier for other advisers to ...
0
votes
0answers
8 views

help in changing a query to retrieve random limited rows

I'd like to change this query in my WordPress plugin so that it retrieves 30 random rows out of 100. $query = $wpdb->prepare( " SELECT p.*, qq.quiz_id, qq.question_order AS `order`...
-1
votes
0answers
11 views

user registration from application android studio

user registration from application android studio how i can regitre user from android application to my site wordpress programmatically,so can you help me i like to make application with native ...
0
votes
0answers
132 views

How to customise field display on an Elementor template?

Currently on our product page the product's variations (sizes) are displayed in a Select field, I'd like to display them as checkboxes but I don't know how to do this as the site uses Elementor. I ...
0
votes
1answer
28 views

How to use PanelColorSettings in custom Gutenberg block?

I'm working on a custom Gutenberg block. I have used <PanelBody> <BaseControl> and <ColorPalette> to create some custom color pickers, however, it seems like it would be more ...
0
votes
1answer
33 views

Gutenberg editor add a custom category as wrapper for custom blocks

As we know by the provided API from Gutenberg we can create a custom block as const { registerBlockType } = wp.blocks; registerBlockType( 'my-namespace/my-block', { }) but how do I create a ...
0
votes
0answers
11 views

How to fix custom add menu page preventing media library from loading

functions.php require get_parent_theme_file_path( '/inc/option-admin-page.php' ); option-admin-page.php function admin_page(){ add_menu_page('menu page','Option Panel','administrator','...
0
votes
1answer
18 views

Show total sales for each products on search results page Woocommerce

I customize my search results page like this when show the results as shown in the picture at the bottom I want to show total sales for each products on search results page
0
votes
0answers
13 views

Customize Wordpress backend page editor

To build a web pages with Advanced Layout Builder, I want to customize the post page in wordpress backend by adding a new column "Advanced Layerslider" on table list of pages: The new column will ...
0
votes
1answer
23 views

Color swatches on category page?

I'm trying to add color swatches on category page. I have this code in functions.php : add_action( 'woocommerce_after_shop_loop_item', 'sm_display_product_color_options', 9 ); function ...
0
votes
0answers
12 views

I have a custom product page based on a category but how do I override hooks specific to this category

I have two categories, lets call them cats and dogs, when someone views a product from the cats category it will display the standard single-product layout but when they display a product from the ...
0
votes
1answer
19 views

How to create “custom page types” with different custom fields in them?

I have lots of pages that perform very different purposes in my website (landing pages, thank you pages, regular website pages, webinar pages, etc). As such, I would like to group my pages into ...
0
votes
0answers
21 views

Cannot access wp-admin but can authenticate frontend login

I have a custom function which is based off the wp_login_form(). I copied the function and essentially wrote it to add in two new fields to validate against - "mbjbookdomain" and "mbjbookreference". ...
0
votes
0answers
15 views

AJAX preview of photogallery

I am using a plugin Photo Gallery and want to create a group of galleries. However, there is showing only one preview photo of the gallery on the list. I would like to show the first four photos of ...
0
votes
0answers
22 views

Post relationships/nesting

Ok, I know that posts can't be nested but for the purpose of this question, I'm using the word. I'm having some trouble wrapping my head around creating a pedigree site, I'll explain where I am and ...
0
votes
1answer
26 views

Need folder for CPT templates for eg: single-{post_type}.php

Hello I feel like my WP theme folder is getting a bit messy is there a way to put all the custom page-{post_type}.php, and single-{post_type}.php inside a folder instead of having them in the root of ...
-1
votes
0answers
18 views

VisualComposer.io add custom icons

I'm using this plugin: https://visualcomposer.io/help/api/ I want add my custom font icon in iconpicker field, there is some hook for this?
0
votes
1answer
24 views

WooCommerce custom billing fields on email address

I want to add the custom billing fields that I added with the WooCommerce Checkout Field Editor plugin into the email that it's sent to the customer: I added the custom num_int field: And tried to ...
0
votes
0answers
8 views

How to add reply comment feature in custom comment form

I have created a custom comment template; Here created a form and stored the data in my custom table. The stored data showing from table in frontend. This comment form is calling with in a loop for ...
0
votes
0answers
11 views

how to display all woo-commerce product in one page under categories and inside category in tables?

I have try but field to get all woo-commerce product in one page in accordion/collapsible and when some one click on that it show you table and in table all products having add to cart button each row ...
0
votes
0answers
13 views

Modifying single-portfolio.php or creating shortcode to display portfolio tags

I am trying to create a shortcode that can be used to display the project attributes (Categories) of a portfolio item on the portfolio item page. I am using salient and they only allow for the ...
1
vote
2answers
35 views

Best way to start becoming a wordpress developer

It's my mission this year to become a wordpress developer. I've been using wordpress for years as a frontside user but I now want to be able to develop wordpress sites from themes to functionality and ...
0
votes
0answers
26 views

How to create custom post type selection to nav menu

I added a custom post type in my navigation menu. with this code register_post_type( 'post_type_name', array( 'exclude_from_search' => false, 'label' ...
1
vote
1answer
47 views

WooCommerce sort products by the actual product width(not the shipping width)

I have regular/simple products and products with variance in the database. Regular products and variations have a product width(_pm_width_inches) associated with them . I am trying to sort based the ...
1
vote
1answer
114 views

How to remove query string from static resource in WordPress?

I have this type of query string, Like: https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js?ba0a5a&ba0a5a https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js?...