i would like to autoasign every user that comments a custom webpage ex: http://example.com and make every username clickable.
I want it to be automatically, so they cannot complete the website field
Related
I have a dynamic page setup using elementor on wordpress. It shows up the data of a logged in user including their name, profile photo and other custom fields the user has. All is working well.
I was thinking if it's possible to change this content by passing the user id of the user via the URL.
So let's say the page url is. mysite.com/profile and if I want to show user data of user with ID "56", is it possible for me to pull their data by passing user id via URL? Like.. mysite.com/profile/?userid=56 ? Can this be done on wordpress?
Thanks for your time in advance.
im new to website coding. I am trying to hide a div/element when user is coming from only some url.
For example
Hide id 123 when the user has come from google.com.
Can this be done?
Let's suppose I have a page with ten products. When I click a button on one of the products it opens a pop-up (partial view) which has some share buttons. When I click 'Share on Facebook' it needs to have the correct meta-tags (title of the product, description of the product and image of the product).
Is this possible and if so, how?
I ended up doing a view and a page from umbraco on which it renders the view from the controller. It adds the correct meta-tags, dynamically.
The user clicks share and that's it, I just serve facebook's crawler a product page which the user won't see. Then when someone clicks the shared url from facebook it will get a redirect to my desired URL.
Previously tried with javascript and ajax, or even alter the master template tags from the controller and even checking if facebook's crawler gets on the website, only the last one worked partially but yuck...
I want to Make a contact form in wordpress including input fields and some checkboxes , I want the form data to go to my email address.
How do I make one from scratch ?
Go to the wordpress dashboard and click "Contact" on the left hand side.
Click add new.
In this area you have two boxes, form and mail. Form is what is displayed on your website and mail generates what is sent to you (ie the e-mail address the form will be sent to and the default template of that e-mail).
Directing mail to your e-mail address is very simple - just change the "To" box to your e-mail.
The form box is completed by generating tags using the plugin. For example, to generate a file upload box you click generate tag -> file upload -> and change the options within (required field, etc) and then paste the given code to the form and the mail boxes where it directs you to.
Once this process is finished for all forms click save and copy the generated shortcode to the page you want to include this contact form in.
Hope this answers your question,
Paul
You can find all you need in their documentation.
Contact Form 7 Documentation
The homepage of my Wordpress site is set to display my latest posts.
I also created a landing page which includes a form for users to fill out for a free consultation.
How can I make it so that when first-time users go to the homepage, they will be redirected to the landing page? (But clicking on my site logo should still take them back to my regular homepage showing my latest posts.)
After users have filled out the "get a free consultation" form on my landing page, we would create a cookie or something so that whenever they next visit the homepage, they will just see the regular homepage with latest posts - not see the landing page any more.
Is there a way to write a code for this?
Thanks in advance!!!
setcookie() is probably a good option.
if(!$_COOKIE["been_here_before"]) {
setcookie("been_here_before", true);
header('Location: /consultation'); // Your free consultation page
}
The way to achive this is a little bit more complicated.
The best practice for this is to have your form in an overlay on the homepage, the user sees the form when accessing your website but has an option to close that layer (exemple:"already fiiled the form..."). After the user submits the form or clicks "close" then set a session variable that will be used so the user won't receive the overlay again in that session. An website that does that is this one which asks the user to register for the newsletter. If the user is already register then he can click "Already registerd?" (=Sunteti deja înregistrat?) and the overlay disapears for that session.
If the form submision is mandatory for all users to get access to the website, then force them to login in the landing page. Here is an example for that.