I'm trying to make a simple login form.
The wordpress function
is_user_logged_in() always returns false.
I don't want to use any pre-existing themes for wordpress, and I want to simply add wordpress functionality to an existing page.
I checked the cookies on my page with the form, and none are being set.
The wordpress install is located at:
http://localhost/newgameplus/wordpress/
The testings script is located at:
http://localhost/newgameplus/TEST/scripts/php/testWP.php
EDIT:
Solved this issue by going to wp admin panel, and changing the options.
Settings>General Settings
Adjusted site Address to reflect the actual website location.
Your script is running in a different web space to the WordPress install. To access the Wordpress functionality you'll need to be working on the site within the wordpress web space - ie the
http://localhost/newgameplus/wordpress/
directory
Related
I am coding the website linked below. I want to set it up so that my client can update basic areas of the site (using Wordpress) without going into the code. I installed Wordpress in the Kualo hosting service, but I can't find any tutorials that show me how to enable my client to make updates to this page. If, for example, my client wants to change the menu item at he top of the page to say "DOCUMENTS" instead of "RESOURCES", how would they do that? I want to keep my custom-made html but allow the basic text components of the site to be modifiable by my client via the wordpress interface. Any guidance would be appreciated!
http://layouthuprising.org/LAYU.html
I am currently working on a site which is built in using a Custom Designed CMS (there are files with .asp extension). This site is really old and seems like running on IIS Server, which I don't have the access. User asked me to add few items. I made changes to index.html file and uploaded to the server, however, the changes don't seem to take in affect.
So my question to Pros, is, do i have to restart the IIS instance? I tried to change the index.html existing content such as Search Bar's placeholder text from Search to search, uploaded the page and nothing happened. Also added new p tags and no luck.
I have never dealt with IIS site. Any suggestions? One thing for sure I can see is that the Home Page in Custom backend is pointing to the index.html file (which I am altering).
Not at all. I does require a reload/refresh at the client-side though.
-Tango
I've tried to make some changes on index.html on my page, for example I've added a section on the homepage with a video. But the change it only lasts a bit, after some time the page it's automatically restored as it was before.
The changes can only be made in the built in editor on Wordpress?
Maybe check your file manager in your cPanel account or whatever web hosting account you are using. There may be a default page that they load automatically.
I have this theme http://themes.two2twelve.com/site/fluidapp/light/ installed on my website running wordpress. I converted the template to a wordpress theme by following the steps here: http://thethemefoundry.com/blog/html-wordpress/ and its all working fine.
However, I have now been given the crazy task to integrate a "Back button" function in it.
What they want is to have some sort of Back button functionality (or the browser one) so when they open Team and they press Back - they go back to Home. The template is basically one-paged, you can see so in the source code.
One way I can see this happening is if I make every page a different .php file, upload them to my theme folder and then just hyperlink them. like www.yoursite.com/team.php
Another possible way (I think) would be to create a page.php template file and then post the pages using wordpress. Question: How do I tell wordpress to use page.php as the page template file?
Can you think of another way to integrate this functionality? Thanks a lot in advance.
If it always is going to return the user to the startpage you could just use the home_url(); function.
Back
If you got more advance structure and you want the button to just redirect the user back one page, you should use javascript.
Back
page.php is the default template for wordpress pages. So if no other is selected in admin, page.php will be used.
If you're using javascript to load the new content, you could use javascript pushState()and popState() to log the stuff to new url's, and it gets added to the browser history. Here's an example.
I'm building a theme to be my deafult template to all my wp installs, I've managed to sucessfully create a theme options page and I can integrate them a page theme, but for this to work it is required that I create a new page, for instance, "Privacy Policy", set the page theme to my costum page theme that calls theme options, publish the page, modify the theme options in admin area. This works, but this is nto what I'm lookig for,
What I want is a pipeline that goes like, ->install theme->configure theme options-> done
I want to skip the process of creatign a new page and applying the page theme to it, I would like do this "hardcoded", like, a link in the footer to /privacypolicy.php", problem is that it does not work this way, I'm guessing this would be something related to .htaccess, like adding the permanent redirect to the full themplate directory / targetpage.php / and redirect it to something like "blogurl/privacypolicy", is it? the probleme is I know squat about configuring a .htaccess redirect or whateverm what should I do?
Thanks
Just an idea...what if you setup a clean WordPress install using the theme you developed. Add a page and put in the content that you want (Private Policy) and then extract the page entry from the table that WordPress stores it in and convert it into a sql statement which you then execute when your theme is activated. Make sure though that the page does not exist yet. Hope this helps.