Category "wordpress-theming"

How to get parent and child categories from wp_nav_menu() Loop in Wordpress?

I have created a nav menu on the archive page I want to loop them here as foreach so how can do it? <ul><!-- 1--> <li><a> First t

Why does wordpress replace my custom child-theme files with old versions of themselves?

It's like the system is messing with me deliberately. Twice this has happened now: I make some edit to my own custom child-theme using the theme file editor in

Why does wordpress replace my custom child-theme files with old versions of themselves?

It's like the system is messing with me deliberately. Twice this has happened now: I make some edit to my own custom child-theme using the theme file editor in

Hide custom field depending on the page

I need to hide a custom field created by a theme only in a specific page. I am using a code that works perfect in another site but in wordpress seems to not wor

How to use a custom post type slug within another custom post type's slug

I have created two custom post types in my wordpress project: city and property using the below query. register_post_type('city', array(

Products color should show through color variations in woocommerce

I have added two variations at product page in woocommerce. Size Color Color image is moving and appearing at the front, once i am selecting the size also. But

Responsive media queries only loading when window is adjusted

I have a Word Press site that is using the Avada Website Builder plugin, but with a custom template and a custom CSS file. I have bootstrap 4.6 loaded onto the

Woocommerce products are displaying on singular.php

I have created a custom theme and downloaded woocommerce plugin, the shop page is working fine however when I view a product only the content appears. The produ

How can I add a filter for specific categories on functions.php?

I am on functions.php and I want to add this filter: function graphene_alter_the_query( $request ) { $dummy_query = new WP_Query(); $dummy_query->pa

Only display Woo Commerce sub-categories based on selected Parent Category in a wordpress widget sidebar

I have a WordPress sidebar that I want to only display the children of the parent category. My structure is as follows All Products > Parent Category > Ch

WordPress edit post list

I have WordPress kanews theme. I want to list posts by update date. but unfortunately I couldn't. sorts by creation date. how can i solve this problem? List pos

Remove a wordpress add_filter function from plugin

I have a plugin that is creating a custom template via add_filter: // Create a template view for the new CPT add_filter('single_template', [$this, 'setTemplateA

How do i make Wordpress Auto Republish old post to make them look new on search results

Please I need to delete and repost my old posts on WordPress so that they can be reindexed by search engines like new content. I don't want to manually do it. P

WordPress 5.9 editor-style.css not working anymore and adds css properties that overrides block styling

I have a WP site with the Gutenberg editor styled (the place where you are writing the entry). It worked perfectly until this 5.9 update, where there have been

How to use wp_insert_post to create a page with Elementor content?

I want to create a page using wp_insert_post but set the page to have Elementor content. Here is the code I have: // Create post object $my_post = array( 'p

How do I show custom recent posts in WordPress?

Now it's showing like this: now it's showing like this I want it to look like this: I want it to look like this

unable to update theme options of Elessi Theme

I’m using Elessi Theme Version: 4.2.4 By NasaTheme. I’m not able to update any theme options. only text is written and I'm unable to click any optio

Adding custom body class to the custom archive pages

I have created two custom archive pages: archive-one.php and archive-two.php. Archive pages are placed inside main catalog of my theme. Now what I trying to do

LIKE query not returning data as expected - WordPress

I really don't know what's the issue. I think my code is OK but the output is wrong. I don't know anything about WordPress, please help me. elseif ($_GET['searc

Wordpress how to get the post thumbnail inside a figure tag

I am running a query loop and want that 'if' the post has a featured image, it needs to be inside a <figure> tag. But the featured image's <img> tag