Questions tagged [theme-development]

Themes create the public (front-end) interface for a WordPress site.

Filter by
Sorted by
Tagged with
1
vote
1answer
24 views

Remove CPT slug from URL WordPress

I have created custom post type with the slug (example: loan-officer). I want to remove CPT slug from the URL. I have used below code, I have seen so many threads like this, still, nothing is working. ...
0
votes
0answers
13 views

how selectively get data into front page from custom post type

Hello i'm first tackling on wordpress, any help would be much appreciated . i want to in admin's panel menu add custom page where admin can add ID's of posts and those posts should be display on front ...
0
votes
1answer
19 views

Wordpress theme files Organization

I am new at WordPress themes development, and I am willing to build a complete theme, while I still at the index.php, I found that the file itself becomes more complicated, a lot of HTML tags comes ...
0
votes
1answer
20 views

add diffrent images to a page

I want to add diffrent images to a page,the_post_thumbnail_url() just show feature image but I don't want to dispaly feature image at all! what should I do? Is there another solution?
0
votes
0answers
6 views

WooCommerce use different template for Archive page and Single page

I am building a theme with WordPress and WooCommerce. I created a woocommerce.php file in my theme folder, but all the page of WooCommerce use this template. How do I use different template for ...
0
votes
0answers
25 views

Custom themes that won't work when theme is changed

I am building a couple custom themes from previously designed and developed sites. I developed them and will be maintaining as well. As I am sort of new at custom theming I always hear that I should ...
0
votes
1answer
18 views

Nav menus all outputting the same links

I have registered the following menus in my functions.php // register menus function register_menus() { register_nav_menus( array( 'footer-01' => 'Footer 01', '...
0
votes
0answers
12 views

Action hooks that trigger on new post/page/media being added

I am looking to create some sort of activity log that will track recent actions being done in the wp-login. For example when the admin will all one of the new post, page or media to to the site it ...
0
votes
0answers
8 views

how to create custom job template in my theme using simple job board plugin?

I'm developing a theme with the simple-job-board plugin, I want to create a custom job board in my theme and not have to modify wp-content\plugins\simple-job-board/templates/archive-jobpost.php
0
votes
1answer
18 views

WordPress Theme With Modified View

I'm very new to WordPress. I'm going through some tutorials in developing a theme. What I'm trying to grasp is creating a theme when the pages are a bit different. They all have the same theme but ...
0
votes
0answers
5 views

How to develop school result printing site with wp…which plugin and theme is suitable?

Please I am working on school website that just needs to allow teachers to upload the results of their students; and students will also login to view their result. I know that achieving this kind of ...
0
votes
0answers
16 views

woocommerce reduce total inventory stocks on status change to complete

so my problem is when someone submit an order and complete it stocks only getting reduced from that specific products which is variable of a product, for example: There is product of Pen in total of ...
0
votes
2answers
12 views

add page items to index

I want to show page items in my wordpress theme and this is the code: <section id="two"> <div class="inner"> <?php $pagesargs = array( ...
0
votes
0answers
13 views

How can we stop showing short code in create or edit post section

I've tried one solution which wasn't helpful i added js in admin area with css display none but problem is js takes few seconds to load and it's not good practice to show short code for few seconds. ...
1
vote
1answer
26 views

How to enqueue scripts and styles only when there are needed?

I have page created based on ACF and flexible fields layout. In my theme I have some JS scripts like masonry, fancybox, lazyload. For now im using standard wp_enqueue_style in function.php file. Is ...
0
votes
0answers
7 views

Post Thumbnail Uploaded pragmatically and attached with post but not showing on Front-end or Post Edit Page

I am trying to do something like this. For multiple file upload, I want to create a post for each image and attach that image with the post. Everything is working. As you can see in the picture image ...
0
votes
0answers
32 views

WordPress Customizer Control with React

I am just doing a demo on the WordPress customizer API to edit the header with custom controls. I have designed a custom control by extending WP_Customize_Control and Jquery to refresh/postMessage ...
0
votes
1answer
14 views

Wordpress theme settings not saving

I am trying to develop a theme. I am at the part of using the settings API. The code I use for the settings are as follows: In the example snippets I'm using variables to show the structure of my ...
0
votes
0answers
18 views

create loop for the_content()

I want to create loop for the_content method to destroy content error but I don't know how to create this is what I have now: <div class="b-bottom"> <p><?php the_modified_date('F ...
0
votes
0answers
21 views

Issue with ACF and setup_postdata

On my single post template, I hook a partial template using the following code in order to display related products above the post content : <?php if ( have_rows( 'featured_products' ) ) : ?&...
0
votes
0answers
13 views

How to incorporate Tabler UI in my custom plugin?

I want to use Tabler UI in my custom plugin. https://tabler.io/ How I could make the www.rooturl.com/tabler to be the index page so I can use the contents of tabler that offers? Or is there a better ...
0
votes
0answers
9 views

404 error in linked page

I have two kind of detail pagea page for posts and another for news the post page detail is single.php and it's ok but another page is sinle-news.php and when I click on link it open 404 page! this is ...
0
votes
1answer
17 views

Alter shop page lay-out in OceanWP theme

In OceanWP, I want to alter my shop page by a Beaver Builder template so I modified part of the index.php file as follows: <?php // BLOG PAGE if ( is_home() ) { /* Beaver Builder generated ...
0
votes
1answer
46 views

How to wrap all titles generated by Gutenberg “Heading” block with <span> tag

Gutenberg is still relative new concept, so I lack experiences (and the Internet lacks good tutorials). My goal it to wrap all heading titles generated by Gutenberg's "Heading" block with the <span&...
0
votes
1answer
13 views

nothing happen in search form

I want to create search form but when I search something nothing happen and this is the code: index.php: <div class="tech-btm"> <?php get_search_form();?> </div> searchform:...
0
votes
0answers
23 views

the_content() returns an error

I am using the_content method and it returns me an error: "Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\wordpress\blog\wp-includes\post-...
-1
votes
1answer
23 views

How to create Custom Theme in Wordpress [closed]

I want to create custom theme in word-press from scratch so can you have the idea about custom theme folder structure and development steps so please help me. Thank You in Advance.
0
votes
1answer
9 views

Copying the theme style files and images to duplicate the website but with a difference

I have recently downloaded a nulled premium wordpress theme online and have been doing changes to see if I can build the website I want to with the theme. Now that I am satisfied with my result, I ...
0
votes
1answer
21 views

Problem paginating a subquery on a post

I have created a post template that looks for other posts with the same tags. I want to paginate this list of posts. The pagination links look correct but when I click on them the pagination is lost. ...
0
votes
1answer
19 views

how to change footer content for certain pages only

need to change the Address content in the footer section for certain pages only we are working in education domain the site has two main links one for ABC High school second is XYZ Nursery and ...
0
votes
0answers
10 views

images click popup form and submit images captions in email to admin?

Create Custom Post gallery..archive page display images. customer can click Enquiry Now button.. this button popup form submit all detalies name,email,phone no,msg to send email to admin
0
votes
0answers
7 views

How to avoid showing parent category if is not checked in wordpress

I'm not sure if what I'm asking is possible or not. Anyways, I'm fetching custom post type from the database based on category. When I tick subcategory or even subcategory of subcategory, all parent ...
0
votes
0answers
20 views

My wordpress local urls is still displayed even moved to live

My wordpress local urls is still displayed in some pages even moved to live. How do i fix this, local urls displayed in "canonical link", " meta property="og:locale" code, "schema code". NB: We are ...
0
votes
0answers
23 views

only the first post is shown

I want to show posts in index page but just the first one is shown!this is the code: <div class="w3ls"> <?php if(have_posts()): while (have_posts()) : the_post(); ?> <...
0
votes
0answers
8 views

Display or replace the custom field image in guest auhtor box bio pic from specific post in coding

I want to display, the image from the custom field in the guest author box of the post who has not registered.
0
votes
0answers
12 views

how to change footer quick links menus(Primary menu) for certain pages

Need to change Footer quick links menu and footer tagline for certain pages only we have working on School site it have both higher secondary school pages and nursery school pages if we click the ...
0
votes
0answers
18 views

Is the date when a theme was activated stored?

Is there a date for when the currently active theme was activated stored anywhere? If so, what's the best way to retrieve it? Thanks
0
votes
0answers
8 views

Page For Specific Posts

Im trying to find a way to choose in which page I want my posts to be published in. I have been trying to manipulate the theme-files and to write new functions. But so far without any success. ...
0
votes
1answer
17 views

function 'theme_settings_page' not found

I want to add change apearance setting to my theme and I am using this code: //admin pannel function theme_settings_init(){ register_setting( 'theme_settings', 'theme_settings' ); } //افزودن ...
0
votes
1answer
19 views

How to Download Minimum Requirement of WordPress (Not Themes )

This is not about themes! but WP core files. I am using WordPress just for sake of it's security and Routing engine. I do not need any slat and surges on top WP like commenting, language,.... What I ...
0
votes
1answer
19 views

wordpress can't find single-project page

I created a project form for adding projects,but when I create it,a wrong link create this is how I created project form: add_action('init' , 'create_project'); function create_project() { $...
1
vote
3answers
19 views

Stylesheet not linking

So I have the following structure in my theme: Themes/ - theme-name/ -- functions.php -- style.css -- page-directories.php For some reason, I'm unable to link the style.css to be included ...
0
votes
1answer
39 views

How to get a post views count using 'WordPress popular posts' plugin

I am using 'WordPress popular posts' plugin, and I'm trying to get post total views by ID using: wpp_get_mostpopular() function. Is there anyway to achieve that? or is it even possible?
0
votes
1answer
11 views

How to find where an object first instantiatiation

Problem is solved. I have built a theme options class so i can build as many option pages as i want, an i implement a singleton design pattern to fetch options only once, and i have WPML plugin ...
0
votes
0answers
13 views

moving sections around on wordpress themes that contain sidebar toggles

I am trying to edit a wordpress theme's home page and despite looking hrough some of the php and java acripts as well as searching for the Div classes in all files can not figure out how the theme is ...
0
votes
1answer
713 views

How can i convert the figma design into wordpress [closed]

I have the design in figma, i want to build a wordpress website on these design. can anybody suggest me how can i proceed. Thank you
0
votes
0answers
15 views

In if…else condition, the else statement shows even if if statement is correct

Will please someone help me why this happens. Firstly here is my code. add_action( 'woocommerce_after_add_to_cart_form', 'sione_enquiry_button' ); add_action('woocommerce_cart_actions', '...
1
vote
0answers
37 views

the_permalink() doesn't work

On the index page I want to show projects. Each project has a detail. When clicked on the permalink on the index page it should open detail page. But it doesn't do so. This is the code: <a href="&...
1
vote
2answers
53 views

Showing Co-Authors on post page

I am trying to make my theme compatible with Co-Authors Plus plugin and show the co-authors of a post if had any. I spent about 30 minutes trying to convince myself that I understood the following ...
1
vote
1answer
12 views

Grab posts by multiple categories

So I have the below code that works great: if (isset($meta_field['category'])) { $post_data = get_posts_by_category($meta_field['category'], 0, $post_limit); } else { $post_data = ...

1 2
3
4 5
83