Custom-wordpress-pages Questions
Ad
Wordpress how to apply css for specific roles using admin_head hook
I'm looking to add a line of code to apply css to certain roles. for example: if role "editor":
WordPress how to give access to a page only for subscribers
I am trying to give access of the specific page just for my subscriber user role, if someone else with other then subscriber role or non role user
Default product short description
On my woocommerce site i want to add the text "only available in stores" to all my product's short description, and also have that same
Wordpress how to check if a query has posts
This code allows me to display to the connected user the list of his written articles. however, i would like to choose the message that appears
Wordpress how to use two variables for Post__not_in argument in a wp_query
How can i put two variables in post__not_in like this: 'post__not_in' =>
How to get document (seo) title of specific page in WordPress
I don't mean the page or post title but the title between <title> and </title>. the so-called seo or
Wordpress how to check if a post is the first post
I am using the get_previous_post() to check if the first custom post type so i can add a condition. it works if it's not equal to 0
not able to filter WordPress posts with custom meta-data
This is how i load the post via backend via php $projects = new wp_query([ 'post_type' => 'verlage',
Wordpress how to access a custom query variable from the url
I have the url http://localhost/testsite1/coder2/?id=71 with parameter id=71. as i am developing in wordpress i
Issues when using WordPress rewrite rules then accessing parameter using get_query_var
I'm developing a wp plugin and have a wordpress url: (e.g.: http://localhost/testsite1/coder/?id=66), and have
Ad
a custom JS and CSS for slider works only for "admin" , i need it to work for all users (public users + admin)
I have added custom js and css files for adding a slider but it works correctly for me only (admin) not for public users.i added them via a custom
Changing Button Color in Wordpress mobile navbar
I want to change the background color of the "contact" button in the mobile navbar of this website
Display total number of events in a category - Events Calendar Wordpress Plugin
I'm using the events calendar wordpress plugin and trying to display the total
How to Create custom woocommerce dashboard Template
I am trying to create custom woocommerce dashboard for my custom wordpress theme, but i found a error message when i am trying to create custom
enqueue_stylesheet but it is not working on wordpress theme development
I have recently download a theme and try to convert it into wordpress theme. now i got stuck in error i am trying to enqueue my style sheet
WP Search page posts count conditional display based on post type
I'm trying to implement a conditional display of number of posts (post count) on the search page based on the post type. i'm looking for
Get all custom post meta values from all posts in select dropdown to use as a filter - Wordpress
In my wordpress blog page, i am trying to create filters for blogs. i have a custom post meta key part_number, now i wanna create
Custom dropdown filter for blogs not working for multiple filters - Wordpress
I have a wordpress website. in blogs page, i have created select dropdown filters, if i write code for single filter then it's
Wordpresss: display all categories, but if one contains only one post, display this post instead
I am still new to wordpress (and php) and i am trying to finalize my very first template. current request is to display all given (sub)categories,
Custom breadcrumbs with list of children (categories or pages)
I am currently building my very first wordpress template (using bootstrap 4) and i need to integrate breadcrumbs to my page. i can see that the
get_term or get_term_by is not working - I am outside the taxonomy nor inside a single.php
Function sub_menu_industry_products_feat_func($atts) { $atts = shortcode_atts( array( 'feat_img_slug' => ''), $atts );
Ad
Custom page created by a wordpress plugin
I am trying to figure out how to create a wordpress plugin that adds a page to the wordpress website on which it is installed. i came up with the
Wordpress custom pagination links to a blank page
This is my archive of posts:
the contact form 7 is not in my wordpress site? but works on a blank page some issues with my code
The contact form 7 is not in my wordpress site? but works on a blank page some issues with my code. when i paste the short code in my contact
Wordpress two custom_post_type one taxonomy
I create two custom post_type. the name of the custom post is- 1. brand 2. ethical
Paid Membership Pro
I am trying to make a custom login area and registration area with subscription plans to be paid. i used several plugins to design it. but i
Display subcategories in wordpress, but not in a list
I need to display the subcategories of of a category on my new website. my structure is as following: test1 - sub1_1 -
using two type of permalinks WordPress for new posts
I have wordpress website and i want to use different permalinks for it, the problem is i don't want to change old posts permalink because of seo,
Wordpress one custom post permalink structure inside other custom post permalink
It's a membership website. listing (custom post type - 1) team member (custom post type - 2) when
WordPress custom file upload being overwritten on no file selection
I'm working on a custom theme that allows you to upload multiple images on one page. since i have multiple file inputs, i use this function in my
Edit the Wordpress sidebar with personalized content
I am creating a plugin for wordpress. i'm in doubt which hook i need to call to add custom content to the wordpress side menu bar.
Custom result page upon submitting search form
I'm running in circle, i'm trying to run a query from a custom search form and to display the result on a specific custom page. i've
Ad
Wordpress Astra theme how do I use wp_redirect
I want to use wp_redirect inside this function but i am currently getting an error: cannot modify header
How to create Feed section in wordpress for homepage
I am trying to do is, when a user post something from his account it will directly need to show on homepage on wordpress site. this will be for
How to display only specific category label/name on page and hide other categories name?
I am trying to display only 1 category name and want to hide other categories name in post listing page.
Is there a way to use a custom css file(!) for one specific divi module?
Hei, i need to implement css for a code module (divi) and the "custom css field" of divi can't handle the sum of lines which i have to
how to use default wordpress header and footer in static html page
I have a wordpress website located "public_html" folder and i uploaded a static html page name facts.html to a new folder in
Wordpress WpForm customize submit button to call external API (Json)
I wanted to change the submit button to be able to trigger ajax or whatever that can send post request to another server (as i wanted to managed
Develop wordpress plugin to create pages with templates
I'm a beginner wordpress plugin developer. our plugin needs to create some specific pages in wordpress. my plugin can create the pages this way in
Wordpress: insert same code with different parameters into multiple pages
I'm still a wordpress newbie, so (hopefully) this is an entirely dumb question. i need to insert the same embed code (something like
Don't show anything when there is no content
I have the following code inside the search results page and i want it not to show it when there is no content in any part.
Wordpress theme is not showing same to the preview
Today i installed wordpress and install shapely theme just to get started but result is not as i expected. i installed many other themes but same
Wordpress Tags and Categories show on backend (post edit page) but not on frontend?
I've created a custom post type 'projects' and attached a customer taxonomy 'services' to it. i've set the taxonomy up as categories (i tried tags
Ad
Wordpress page is getting the global header instead of the secondary header
Im new with wordpress, i'm trying to build a website which has one global header in all pages except the front-page.php, but my front-page is
How to get a custom value using Contact Form 7 - Dynamic Text Extension
I have a $_session array variable with post ids. inside foreach loop, i would like to get the posts titles of these ids. thus so far i have
How can I insert wordpress page title in any section of this page?
I want to insert wordpress page title in any area of this page. such as displaying page title in blog area of this page. is their any code that i
wp contact form 7 save form to database & mail also
I want to add a wp7 contact form in wordpress site but i want it to mail as well as save form filled data in database table as well. is there any
Order Wordpress custom posts by custom feilds
I am trying to order custom posts by custom fields. this is my code. $paged = get_query_var('paged') ? get_query_var('paged') : 1;
Unable to download CSV after WordPress version update
My site was working fine with wordpress version 4.9.8 but after version update to 5.4 function to csv upload has stopped working. in debug log
WordPress with PDF error "Unexpected server response (204) "
I was trying to embed pdf reader in my wordpress website visitors can read and and take print of pdf. i did use many wordpress plugins but i am
How to add active class in wordpress to anchor tag
<li> <a href="<?php echo site_url('/blog') ?>" <?php if(get_post_type()=='post') echo
How to hide a word from text through CSS
I'm working on a website through wordpress and for some reason, i can edit the css but not the html code, and i want to hide some text but not all
Browser is automatically adding a <s> tag into html error
I'm customizing a dotdigital wordpress theme on a
How to count the number of sub-terms under each parent term in WordPress
I want to count the number of sub-terms under each parent term in wordpress. i have created a custom taxonomy in wordpress. i would like to
Ad
Whitelisting ip addresses and redirecting users on WordPress login page
I want to make a plugin for my own wordpress website, in which if the login page of wordpress is accessed from a specific address, then it is
Move title & ratings above image gallery on mobile devices in Woocommerce
I am trying to move my title and ratings above the image gallery in woocommerce but only on mobile. desktop version should remain the
WordPress: WooCommerce your order is disabled
In woocommerce your order section is not working, can anyone help me please? i am very tired of this error, if you can come to my
How to disable Default Post Category in WordPress?
I'm creating a new post without selecting category but whenever new post is created at that time it automatically selects category. i want to
How to edit html of a wordpress page with syntax highlighting
I'm developing a site with wordpress. i studied the core and its operation very carefully, especially how a theme is composed and how to build
Can't change WordPress Address (URL)
I want to change wordpress address (url) and site address (url). after a few experiments unfortunately using wp-admin or even changing it on
Wordpress cron – event added to queue but not firing
I am trying to hook into the woocommerce_order_status_changed action and add a single event to the wp cron to execute immediately (so
How to fix the error `found no layout file for "HTML" for "page"` in Hugo CMS?
I recently imported content from my wordpress page into hugo. when i run hugo serve i get following error messages:
Create a page with child pages and have each child have it's own page template
I have some code that creates pages with child pages in wordpress. what i would like to do is have each child have its own page template. as you
Can I use the WP_List_Table class to render tables on a page?
I am currently using shortcodes to display a list of items obtained from a table and displaying it on a page of my website but since the list of
How to remove the bullet points from this WordPress theme? Thanks
This is the css code. i would appreciate if you could let me how to remove the bullet points on side menu. link:
Ad
How do I update_post_meta with a checkbox array?
How do i take all the checked options and fill my custom post type checkbox field? here is the form: <form
How to render a form through a plugin on a wordpress page?
I am practicing the creation of a wordpress plugin and so far i have made progress by installing the plugin and displaying it in the
WP add functionality to reorder front page sections
I am building a theme and want to add the fuclnctionality to let the user reorder the front page sections. for example, if the normal order is
Display Wordpress blog article category
I'm using wordpress theme bridge, here's the reference.
How to render information from a custom table in Wordpress?
Good morning, i currently want to develop a section on my page where i can display and edit the information of a table that i have created
"No p element in scope but a p end tag seen." by the WCAG 2.0 html validator on my Wordpress blog page
I'm trying to validate my wordpress site for the wcag 2.0 aa standard, it's the first time i'm dealing with it and i have this error by the html
Get parent taxonomy term id when on child taxonomy template page in wordpress cpt
I have a custom post type with a taxonomy "section" and i have a template page with a query loop to display a list of categories with thumbnails.
Wordpress WP_Query result array
I'm trying make my wordpress homepage to show only 2 blogpost. with different showing element. one of them is float-left and one is float-right.
Ad
Blog Categories
Ad