All Questions

0
votes
0answers
2 views

Pagination on custom post type on front-page.php

I've seen several (and have tried at least 15+ methods here on StackExchange) ways of how to do the custom post type loop, none work in my case. I have tried methods using paged and without, using ...
0
votes
0answers
2 views

Youtube videos wont change size

I'm trying to get the youtube videos on this page to re-size to smaller than full width, I've changed the size on the YouTube embed options to the smallest size and it still appears full-width when I ...
0
votes
0answers
3 views

WordPress REST API call generates nonce twice on every call

I'm trying to login a user via the REST API, and then retrieve the current user on subsequent requests. As per the documentation, in my plugin, I am creating and retrieving a nonce after a successful ...
0
votes
0answers
4 views

Missing Slash in WP_Contents causing issues with directory

I am having an issue where if I try to upload something it will upload to public_htmlwp_content instead of public_html/wp_content This happened after the 5.0 update but I'm not sure what has changed ...
0
votes
0answers
6 views

Divi Theme on mobile swipe right [on hold]

For those who are expert in using Divi Theme how can I remove the swipe to right menu. When swiping far right you open up the menu I don't want that to happen.
0
votes
0answers
3 views

Display Woocommerce review stars without any reviews

I wrote this code to display empty Woocommerce review stars if there are no reviews on the single product page. Currently, Woocommerce doesnt display any review stars is there are no reviews for a ...
0
votes
0answers
6 views

WordPress - enable Cors

I've been strugling on this for a few hours already. And yes, I know that this might seem to be a duplicated but please, just hear me out. I've tried many solutions I've found on StackOverflow about ...
0
votes
0answers
7 views

user_profile_update_errors hook not executing

I'm trying to use the user_profile_update_errors hook, however it doesn't appear to be executing. I'm calling it like this: add_action('user_profile_update_errors', 'blm_register_result', 10, 3); ...
0
votes
0answers
6 views

Problem with Single page Template and Custom Post Type [on hold]

I've been having a problem with my custom post type single pages and single page templates, for a few weeks now. For some reason on both types of templates, my header and footer menus are not ...
0
votes
0answers
4 views

Unable to add custom page to Wordpress admin panel

I am trying to add a page to admin panel and following this tutorial here admin-panel.php function add_menu_to_wpadmin(){ add_theme_page( 'Admin Contact Us', 'Subscriber list', 'manage_options', ...
0
votes
0answers
6 views

Problem with responsive images

I am using this plugin https://wordpress.org/plugins/carousel-slider/ which is based on Owl Carousel and I have problem with images/slides. It depends on screen size but very often the last slide is ...
0
votes
0answers
9 views

An issue for SELECT query in WordPress?

I have meta_key in postmeta table as first_group_class that it's value is serialized and I can not use WP_Query. Because I want to know the count of special string (e.g: '#23#') that is repeated in ...
0
votes
0answers
4 views

How to put the menu item in one line

When I added another item to the menu, it showed up in the second line. On the left there is still a lot of space so I would like to put it in one line. When away in the browser at 90%, then ...
0
votes
0answers
11 views

Custom register page and retrieving WordPress registration errors

I'm doing a custom login and register page and the login portion has gone smoothly as I can redirect errors back to my custom page because of how wordpress handles this (such as appending the issue to ...
0
votes
0answers
8 views

Show posts from custom post type sorted by category/taxonomy on a one-pager/page

I'm working on a one-pager wp site for a festival (page: Home). This festival has 4 stages. I created a custom post type "artists" with custom taxonomy "stages" and entered the 4 names of the stages. ...
0
votes
2answers
18 views

Enqueue script for development purposes only?

I'm trying to create a new development workflow and for that I need to enqueue some scripts to be available only when I'm developing. What is the correct way to do this? Should I use WP_DEBUG as a ...
0
votes
1answer
12 views

Custom URL routes

I'm a newbie in Wordpress, so excuse me if I ask a noob question. I want to redirect some of the URLs to a specific page (single-deal.php). Now, these set of URLs (regex provided for these URLS) does ...
0
votes
0answers
11 views

Vertical align menu items

Just about finishing up my first WP page. I'm in desperate need of some help with my menu. Would be super happy if anyone could help me out. I would like the text/links in the menu to be centered ...
0
votes
1answer
10 views

How can I add text to a specific 'Edit Page'?

I have a specific Page, that I do not wish to be edited. As such, I would like to place a 'Do Not Edit This Page' message within a specific 'Edit Page' file as follows: Any ideas on how this can be ...
0
votes
0answers
8 views

Meta query to fetch only latest post [on hold]

I know how to use meta query but can't setup query to fetch only one post by it's custom date field.
0
votes
1answer
10 views

Set Microsoft Word links to open in new window/tab

I'm unable to set Word hyperlinks to open in a new window/tab. Basically, I create a Word document and paste its contents to WordPress, and everything is there, links do work, but they don't have "...
0
votes
0answers
16 views

How to count the table rows that contain special string? [on hold]

before, I could count all the table rows in the_content(); in the following question and i can use it in the loop: How do I count all the table rows . but now i need to count those rows that contain ...
0
votes
0answers
9 views

Expire User after certain time

Hello i have two custom role on my website (Freelancer and Employer) and i want after 1 year of registration the user have role Freelancer expire user. This is what i want: User subscribe > After 1 ...
0
votes
0answers
6 views

User Submitting via Contact Form 7 - displayed content for public

I thought I knew how to word questions to where I could get answers via search engines, but this one is apparently too confusing. I use contact form 7 (at least for some sites) - but in this ...
0
votes
1answer
7 views

Can't add to time?

What's the best way to add to time()? For example: time() + 5 will return 5, not the current unix timestamp with 5 added to it. Any ideas? Thanks
1
vote
0answers
12 views

joomla to wordpress migration and 404 errors issues

I had migrated my website from Joomla to WordPress with "FG Joomla to WordPress premium" the problem is that I have more than 2900 posts in my website they all are now imported in WordPress version ...
0
votes
0answers
13 views

Remove custom role when subscription expires

I have two different types of subscriptions (basic and plus) and have a different role assigned depending on which subscription is purchased (3rd party plugin). So when the basic is purchased, they're ...
0
votes
3answers
24 views

How To capitalize The First Letter Of Every Word In The Post Title

Hello i wonder if you can help me. How do you make to post titles capitalize the first letter of every word? Is there a way to do it in wordpress?
0
votes
1answer
23 views

How to update all posts at once?

Like "after host change, we update our permalink"
0
votes
1answer
9 views

Redirect From Url To Url

I want to redirect the same directory, but different url structure. The url structure I use: http:example.com/car/cadillac/image/2 I want to direct http: example.com/car/cadillac/image/ url. Because ...
1
vote
0answers
9 views

Changing image size to full size in Gutenberg's block gallery

I'm using Wordpress 5.0 and I love it so far. The only problem I have with Gutenberg editor is that its "block gallery" doesn't work so well. I have some 4K screenshots in block gallery, but it looks ...
0
votes
0answers
3 views

How to link to page with matching posts/products

I feel like I must be really stupid because I've spent so many hours trying to work this out and have got nowhere. I've been working on a plugin which mainly uses AJAX and WooCommerce REST API to ...
0
votes
0answers
10 views

Missing Slash in wp_contents

I am having an issue where if I try to upload something it will upload to public_htmlwp_content instead of public_html/wp_content This happened after the 5.0 update but I'm not sure what has changed ...
0
votes
1answer
16 views

Query users by custom field

I want to get the users who registered within last 7 days, and meanwhile who have uploaded custom avatar. I've added a function allowing users to upload their own avatar img with a custom field ...
0
votes
1answer
8 views

Iframe is not working for www.example.com/my-account

Iframe is working fine for www.example.com, But its not working for www.example.com/my-account I followed few tricks, Like: adding these codes: remove_action( 'login_init', '...
0
votes
0answers
10 views

Wordpress Answer Validation, Obfuscation issue

I have this issue, where I have made a function on my wordpress website (under Theme Functions.php), which then uses a shortcode to present on the front end. Now, I want to obfuscate the shortcode, as ...
0
votes
0answers
9 views

How to add a border around a menu item [on hold]

How to add a border around a menu item as "Zostań partnerem"?
0
votes
0answers
11 views

How do I make comment-reply-button with <span> that takes to comment reply form on click

I do need your help. I'm actually designing my personal blog's theme and I got stuck when I could not code a working comment-reply-button with span element. I know you must be wondering why with a ...
0
votes
1answer
9 views

How can I restrict the categories users can post in, based on user roles?

So far I've only found plugins that are either obsolete or only affect which categories are displayed. EDIT: The result should be that users can only select certain categories when they publish their ...
1
vote
0answers
12 views

How to change the permalink structure of a master page?

Links on the page I use are progressing as follows: http://example.com/image/1 The code I use for Functions.php add_action( 'init', 'wpse316713_pagination_base_rewrite_rule' ); function ...
0
votes
1answer
17 views

Wordpress Gutenberg home page “edit Page” option missing

I try to understand customising of default theme, in my case twenty nineteen. After I create a new page on the top horizontal bar there is an option "Edit Page" visible. Why that option is missing on ...
0
votes
0answers
8 views

ACF flexible content data and repeater field data not displaying on backend but stores in DB [on hold]

I have written a custom script to import data into DB, it stores in Database but ACF flexible content data and repeater field data not displaying on backend.
0
votes
1answer
27 views

Metadata on the WP_Post object

I need to retrieve custom field content from some posts. I'm currently using ACF and get_fields() gives me the result I need, but I'm wondering if it could be done natively. According to both a ...
0
votes
0answers
9 views

php multi value selection can handle two atrribut in one select

i want to ask how to add selection can handle 2 value in one choice example: in data student have 2 attribut id and name in selection box just visual name and if choice any name attribut id will ...
0
votes
0answers
11 views

I would like to have a quote page just to show quotes

I want to have quotes just show quotes and not the featured image like this https://demo.zigzagpress.com/xplorer/category/post-format-quote/ how would I go about stripping away the other things and ...
0
votes
0answers
20 views

Where should I put my custom JavaScript and Css files?

I want to add some custom css and javscript in a post. I don't want to write it inline, but I don't know where should I put these js and css files.
0
votes
0answers
8 views

WordPress Multiste Registration Page to Site only

I recently installed wordpress multisite in my environment, and when I started migrating my sites to it I realised when a user go to a subsite and click register it bring them back to the Root site ...
0
votes
1answer
16 views

Updating Wordpress plugin admin panel footer text

The Wordpress admin backend displays the following footer text for each page of the admin panel: 'Thank you for creating with Wordpress'. What is the cleanest way to update this text for a particular ...
0
votes
0answers
10 views

using bulma in custom plugin with vue how to isolate the style to not break admin page

I try to build a wp plugin using together with vuejs and bulma as css framework but seems like is having impact on the hole admin area. Is it possible to load the css just on my plugin admin page?
0
votes
0answers
22 views

Replace empty space from shortcode

On my WordPress post I have used the shortcode below. Each link comes with a different file path and name. I want to replace all empty space in the path from this: "HP Color LaserJet Managed Flow ...

15 30 50 per page