jasghar
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How to check for a letter next to a specified letter@plantprogrammer Sorry for not mentioning this thing before
I want to do detect this in php
Forum: Developing with WordPress
In reply to: how to show server data in a wordpress tab?@bcworkz Thankyou very very much things went very smooth.
And everything worked. Now I can show files from server to a separate page in dashboard.
BTW do you know how I can add a clock or timer to see files in a specified duration means
How I will be able to set a timer if I want to see the files of last month or let’s say from 01 to 15th of month?
Thanks for the help
Forum: Fixing WordPress
In reply to: 403 forbidden nginx@gappiah thanks for your response, yesterday I have talked with Cloudways support person and he said that they don’t provide pre installed mail servers. And he also said me that I need to install their mail addons so I can send emails in website.
I just need to configure the SMTP settings in server now and hope I will be able to send emails again.
BTW Cloudways should add pre-installed email servers in their servers right?
Forum: Developing with WordPress
In reply to: How to run wp query with multiple valuesThankyou so much for your response.
The issue was with the ‘ASC’ and ‘DESC’ values and the null values for meta query arguments. I created a variable to check if the price field is coming or not if yes then take this $args as wp_query argument
if not then take a seperate $args as wp_query argument.
But I have another issue.
I have a view more button below posts.
I am showing 5 posts at a time with these three filters (under $20,000, price low to high, price high to low) and I have a view more button below it.
What I want is when I click on view more button it will show me the next 5 posts. This is quite easy but the thing is
if the user already clicked on ‘price high to low’ and click on view more button it should show the next 5 posts in ‘price high to low’ order means in DESC order.
if the user already clicked on price under $20,000 and then click on view more button then it should show me the next 5 posts with price under $20,000
if the user already clicked on price high to low and the click on view more then it should show me the next 5 posts with price high to low order
Any ideas how I can achieve this?
should I make separate arguments with if else statement for each of these filters along with view more button?
I am kind of stuck at this one. kindly give me any suggestions.
Regards
Junaid
Forum: Developing with WordPress
In reply to: How to use if else statement for SQL in PHPThanks for your response
I used as mentioned in the example plus I searched on internet about it but I’m still getting an error message‘You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ”3’
I am using the below code
if($conn) { echo 'connected to database'; $sql = "INSERT INTO <code>activity</code> set id = '2', ip_address = '$i', activity = '$inserelize' ON DUPLICATE KEY UPDATE id = values('3'), activity = values('$inserelize')"; $result = mysqli_query($conn, $sql); if($result) { echo 'data inserted'; }else{ echo mysqli_error($conn); } }else { echo 'error in connecting to database'; }
Forum: Fixing WordPress
In reply to: how to send emailI talked with my hosting provider support and asked them and he suggests that I should use mail smtp plugin instead of the mail function because hackers might hack data if you use this function. But he said this about PHP mail function not WordPress inbuilt wp_mail function
I am trying to go with wp_mail function in my code
thanksForum: Fixing WordPress
In reply to: How to show terms of a custom post type category?buddy thanks for your help but i’m getting an error
if I write this
$terms = get_terms( ‘post_tag’, array(
‘hide_empty’ => false,
) );then it will show the tag terms which are under wp default post tab
dashboard > post > tagand if I write something like this
$terms = get_terms( array(
‘taxonomy’ => ‘interests’,
‘hide_empty’ => false,
) );then it returns an error
wp_error_objectI want to show the terms which are in the interests category so I type interests next to taxonomy
but its not workinghere is the URL of the terms inside interests category
https://valueautosdurango.com/wp-admin/edit.php?post_type=listings&page=interestssee no taxonomy word in URL
Dont know where I’m doing the issue
Forum: Fixing WordPress
In reply to: How to show terms of a custom post type category?I’m not actually getting that, can you explain a little more, please
$post_categories = wp_get_post_categories($postid);but I’m confused about why we need to mention the post id in it.
can you please write the code which will get the terms
my terms are here
listing post type > listing category named ‘interests’ > termsthanks
Forum: Plugins
In reply to: [Search Analytics for WP] How to add links which i want?thankyou dear, thankyou very much it worked
Forum: Plugins
In reply to: [Search Analytics for WP] how to direct users on the specified search term@cornelraiu-1 I’m stunned. don’t know how to say thanks to you. you’re a legit man. and this plugin too. now getting the results as I want them to be. Thanks for the support, this awesome plugin and your help dear
Forum: Plugins
In reply to: [Search Analytics for WP] how to direct users on the specified search termokay the styling was overwritten because of the container element’s class change. but I fixed the styling. thanks for everything
Forum: Plugins
In reply to: [Search Analytics for WP] how to direct users on the specified search termokay tried it and yep it overrides my current styling plus showing in the searched order as wanted the things i noticed is if i search a term
apple
3 times it will show apple three times in a row instead of showing once I wonder if we can sort out this too?. and thanks for the update dear.Forum: Plugins
In reply to: [Search Analytics for WP] how to direct users on the specified search termsorry for late reply let me try this right now and i get back to you. hope it dont affect my css
Forum: Plugins
In reply to: [Search Analytics for WP] how to direct users on the specified search term@cornelraiu-1 ‘I got plugin update in my website. did you updated it?
Forum: Plugins
In reply to: [Search Analytics for WP] how to direct users on the specified search termthanks @cornelraiu-1 for everything. I’m glad to choose this plugin for my site. its really usefull, easy to use and with your fast support it scores 100 out of 100