Xaib Aslam
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Monitor] Issue with PathI added a specific location to upload my files, before it was uploadin and not showing in uploads folder of wordpress. Now its not uploading in my specific folder and uploading in uploads folder of wordpress
Forum: Plugins
In reply to: [Secure Custom Fields] Bugs in latest update 6.2.6Before it was 6.2.6 and then I updated it to 6.2.6.1, now multi-select and date are working fine now. But on the front end, checkbox code is not working, also I have updated the_field to get_field, see the screenshot
Red are checkboxes and green is text, so there is an issue with checkboxes.
- This reply was modified 9 months, 2 weeks ago by Xaib Aslam.
Yes, the issue was present when I was logged in. Without logging in, those URLs did not appear. I noticed that these URLs were generated when using your plugin. To troubleshoot this, I deactivated all plugins and checked them one by one. I discovered that when Rank Math is active, these URLs appear.
Forum: Developing with WordPress
In reply to: Make VariationsThank you @bcworkz but did not get you, I know about the rewrite system, but how it works dynamically. This means I have lots of categories, Toyota, Honda, BMW, and so on. And every car has its own variations. So for that, do I have to do every post for variation or can we make in a single post?
Also, do you have any examples?- This reply was modified 1 year, 4 months ago by Xaib Aslam.
Forum: Developing with WordPress
In reply to: Make the text in my templates editable from the admin panelyou need to use custom fields for this, best option is ACF Plugin for this.
Forum: Developing with WordPress
In reply to: Changing the font size within only one block using CSSYou can use this to change font size of entry title or heading title
/* Change h4 font size in the sidebar */ #sidebar h4 { font-size: 18px; /* Replace this value with your desired font size */ }
Then you need to include CSS and Java URLs of your site. means you will create a file named “my-header.php” and “my-footer.php” add css and java urls inside and use in your custom post/page template.
<?php include 'my-header.php';?> <?php include 'my-footer.php';?>
Forum: Developing with WordPress
In reply to: Get Data From Custom Tablei figured out. thanks for your help @bcworkz
Forum: Developing with WordPress
In reply to: Get Data From Custom TableFinally i figure it out and its working now. Please ignore my last message which is moderation.
But my url is like this
https://mydomain.com/finance/psx/company?company=BILF
How i can make my url like this
https://mydomain.com/finance/psx/company/BILF
I am using the first example which you mentioned @bcworkz
- This reply was modified 1 year, 8 months ago by Xaib Aslam.
Forum: Developing with WordPress
In reply to: Get Data From Custom TableHello @bcworkz, how are you? So brother after 1000 tests I am afraid that I can’t figure out the result which I want. I try to find the perfect example but unlucky the answer is no. Then I found a developer on Fiverr but after 2 days he said that he can’t do that. Then I try Openai but y bud luck nothing was found.
I would be very greatfull to you, if you create an example for me.
Regards
you to add code manually in your archive and category file.
<?php echo do_shortcode('[wp_ulike]'); ?>
Forum: Developing with WordPress
In reply to: Get Data From Custom Tablethankyou for this, do you have any example or sample for this?
Forum: Developing with WordPress
In reply to: Get Data From Custom TableOK let’s say I create a post with a custom template companies.php and on that, I add some company’s name with your code, as you mentioned above.
$companies = array('google','twitter',instagram','etc....',); foreach( $companies as $company ) { $url="https://example.com/company/$company/"; echo "<a href=\"$url\">$url</a><br>\n"; }
Then I create another template single-company.php and I add code, which is fetching data from MySQL custom table. Or fetching data through PHP.
So now how this URL https://example.com/company/$company/ go to single-company.php template.
On single-company.php template i am using this code.
$company = get_the_title(); $url = "https://other-domain/company/$company";
This is working code, for that i have to create 1000 posts, then everything will work fine. But i need that, it can be done without creating posts.
Thank you
- This reply was modified 1 year, 9 months ago by Xaib Aslam. Reason: Added more information
Forum: Developing with WordPress
In reply to: Get Data From Custom TableThankyou for this, i will do experiments on this also.
@bcworkz can you please tell me that what is way to generate auto urls?
Let say we have 10000 companies and we create a template for that, now we dont want to create 10000 posts/pages for that. We just create a post/page with url (https://mydomain.com/company) and it will create all 10000 urls
https://mydomain.com/company/google
https://mydomain.com/company/twitter
https://mydomain.com/company/instagram
https://mydomain.com/company/wordpress
and othersand custom template applied for these urls.
Forum: Developing with WordPress
In reply to: Get Data From Custom Tablenow i figure out, it was just mistake of echo print. now i have one more question regarding this. ok now its working fine.
on other page i want to show latest post of every main post, not sub posts. means i want to show latest post of of these main posts, as you know there are sub posts by date.
100
200
300So i did this thing
$children = get_posts('post_type=business&post_parent=269&posts_per_page=1');
For that i have copy the whole code and do copy paste. Is there any other way to make my code short.