Questions tagged [theme-development]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
9 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
15 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-...
0
votes
1answer
6 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 ...
-1
votes
0answers
7 views

How to display “Pages Jaunes” reviews on wordpress site using source code?

I'm currently working on a client's site who wants to display his "Pages Jaunes" reviews on his wordpress site. He has a Google Business account that displays his "Pages Jaunes" reviews. I have ...
0
votes
1answer
14 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
15 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 ...
1
vote
1answer
959 views

Using WordPress' Theme Customizer to select page templates that update layout in the preview

I wasn't sure where to post this question.. I recently discovered WordPress' "Theme Customizer" and am using it to make the pages easier to update for clients. Rather than the standard way of editing ...
0
votes
1answer
690 views

404 on child page template

I have a page called portfolio and I have created several child pages for it like Video page, audio page etc … I also created custom page template for portfolio and named its file portfolio-template-...
0
votes
0answers
8 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
19 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
22 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
7 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
17 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
10 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
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. ...
1
vote
1answer
665 views
+50

Best choice of options/settings framework for plugin/theme development

My question is what is the best options/settings framework out there now to safely build custom plugin/theme upon? I found the similar question here, but it was asked 7 years ago and definitely, ...
0
votes
1answer
13 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
15 views

Why does my WordPress theme header menu do not work properly in mobile version? [2020] ( wp_nav_menu() question )

Wordpress Theme Issue First of all, I am running a wordpress website named TutsPie.com. I have developed my own wordpress theme from scratch. Actually, i am a noob, therefore, there may be a lot of ...
0
votes
0answers
231 views

WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination

Im struggling to find a good resource on implementing my own AJAX product pagination onto products within the WooCommerce shop loop. Please can someone guide me on how is best to load more products ...
0
votes
1answer
10 views

How can I change the product layout in the store page in WooCommerce? [closed]

I am a beginner at WordPress and PHP, (coming from mostly java and c#) and I was wondering how can I change the store page in woocommerce, I have knowledge of HTML + CSS and I want to implement my ...
0
votes
0answers
173 views

cURL error 7: Failed to connect to XXX.XXX.X.XXX port 3000: Connection timed out - wp_remote_post

I'm using wp_remote_post() for POST WordPress posts to external api, but it shows below error: WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 7: ...
1
vote
3answers
18 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
18 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
18 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() { $...
0
votes
1answer
918 views

Check if redirected from a specific page template

I have a page template, which redirects to the homepage using this: wp_redirect( home_url() ); Now, on the homepage is it possible to check if it has been redirected from a specific page template ...
0
votes
1answer
13 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?
1
vote
1answer
22 views

Default image size not working

I have some hooks on my WordPress Theme in order to customize the default images sizes, but it does not work. Here is the code: function my_custom_image_size() { add_image_size( 'post_size', 730);...
0
votes
2answers
89 views

Update Specific Key Value in Complex `wp_options` object

This should b really easy but I can't find reference - easy points for someone! I have an option in my wp_options table, and need to set it via update_option(). I just can't find the correct syntax ...
0
votes
1answer
8 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
83 views

Adding a second logo next to the main one in header

I want a second logo added to the right side of the main logo on my website, and have it redirect to a different website, when clicked on. I've seen people suggesting editing the code in header.php, ...
0
votes
1answer
39 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
1
vote
2answers
45 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 ...
2
votes
1answer
904 views

Adding wp_enqueue_media(); causes problem

I want to add the media uploader in the theme options page. If I add following code in the options page, the media uploader works fine there, but it creates problem in the standard posts featured ...
0
votes
0answers
13 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', '...
0
votes
1answer
650 views

WordPress Menu item > Sub menu Class update

I'm a newbie to WordPress core and development process. As I have a little knowledge of WordPress functions. But I need the help from you guys. Actually, i'm developing my first theme and i already ...
0
votes
2answers
2k views

creating a custom post template

I want to customize my individual posts. I have an example of what I'm trying to achieve below. Would I make a custom post template for this? If so how would I do this? Or should I add to my single....
1
vote
0answers
24 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
1k views

How to disable controls in theme customizer?

Edit: I have rewritten the question in hopes I will get a reply from someone who knows the theme customizer. I am trying to figure out how to disable setting controls in the Wordpress theme ...
1
vote
1answer
2k views

Load a page into a div with Ajax

I'm really a noob when it comes to Wordpress, right now I'm working on a theme that basically is all static, if you want to edit something you'll have to edit the .php file than rather doing it on the ...
1
vote
1answer
11 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 = ...
0
votes
0answers
7 views

Alpha Color Picker, moving title at beginning of picker

I am using alpha color picker (with transaprency) by Braad Martin's. See Source Here Initially, it doesn't show the title and description. Its shown as below When I click the button it shows the ...
15
votes
7answers
44k views

CSS not updating in browser when I change it

I am working on the CSS of my wordpress site. When I make changes and refresh the page the changes are not reflected. When I clear the browser history and cache the changes are still reflected. When I ...
0
votes
1answer
9 views

Wordpress Local Install Theme Folder Permission To Edit

I have installed WordPress on a local LAMP installation. All I want is to edit the theme files locally on an editor like VS Code where I can open the theme folder and start editing on the go. But I ...
0
votes
2answers
915 views

Multiple do_shortcode($content) within one shortcode

TLDR; How can I run a shortcode with multiple shortcodes inside of it? I'm trying to run a shortcode with multiple shortcodes inside of it. I can successfully run a shortcode with one shortcode ...
1
vote
2answers
2k views

Can not Remove Archives and Meta from Sidebar

This should be easy right? Removing Archives and Meta from the sidebars of two of my main WP pages. I can't seem to! I've looked in Appearance > Widgets and made sure Archives and Meta was not ...
0
votes
1answer
8 views

Default customizer colors aren't displayed outside of the preview

I've been working on a custom theme & going through the usual rollercoaster that accompanies this particular exercise. I do find it very rewarding but what I'm looking at right now is the theme's ...
0
votes
1answer
2k views

how to handle the loop using filling bootstrap grid structure?

i make a code that can fill bootstrap grid structure i used while and for loop in my code but the issue is for loop repeat its value in 2nd row the above picture tells you column 2 and 3 of first ...
-1
votes
1answer
12 views

add_action works outside condition but not inside it

I am developing a theme framework for my own purposes. So this time i am facing a problem, that is add_action works out side conditional. add_action( 'meanz_before_main_wrap', '...

1
2 3 4 5
81