Linking to a file on server in Wordpress
I hava a website in Wordpress. Let's say is installed on a domain www.something.com.
I know how to get to individual files, but is it possible to make a link to a file, so that the URL would be: www.something.com/pdf/article1.pdf?
Yes ofcus, Simply put in the link like so, in your html/text
Download <a href=http://www.something.com/pdf/article1.pdf">here</a>
to refer to the file, and make sure u have the pdf folder created in your root directory. Good luck.
See also questions close to this topic
Parse error: syntax error, unexpected '<' in /tmp/... wordpress
I have jupiter theme installed and activated on my wordpress website. And it's working very fine till yesterday. But now the site is not opening and showing below error. Also same error comes when I tries to open admin panel (http://growthworldwide.in/wp-admin/)
Parse error: syntax error, unexpected '<' in /tmp/theme_temp_setupYD75Y9 on line 2.
every time it comes with some different string at last (after theme_temp_setup). This is shared hosting with cPanel on it. When I goes to File Manager there are many folders like public_html, public_ftp, mail, .cagefs, .cpanel, .cphorde, .cl.selector, .pki, .htpasswds, .softaculous, .trash, logs, softaculous_backups, ssl, tmp, and many more. Screen shot showing folders under home
When I goes into .cagefs folder there comes three folders opt, tmp, var. and this error is related to files listed under this tmp folder. There is one file named mysql.sock. When I deleted it then the site started showing different error that problem connecting with database or some other problems. So I think there is some service stopped or something else.
If you could please help me resolve this issue. Thank You.
Attached two log files which is generated under tmp folder. growthwo_26_75141_upgrade_err.log
NOTICE Undefined offset: 1 /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/functions.php 11536 NOTICE Undefined index: pgtimezone /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/functions.php 68 WARNING WARNING WARNING WARNING
NOTICE Undefined offset: 1 /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/functions.php 11536 WARNING WARNING WARNING NOTICE Undefined index: pgtimezone /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/functions.php 68 NOTICE Undefined index: no_dir_exists /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/backup.php 245 NOTICE Undefined offset: 1 /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/functions.php 11536 WARNING WARNING WARNING NOTICE Undefined index: pgtimezone /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/functions.php 68 NOTICE Undefined index: no_dir_exists /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/main/backup.php 245
Redirect Logged in user to specific page in wprdpress
Please I want to redirect users after the login to specific page called 'activity' I have tried the Peter’s Login Redirect plugin but it just worked to the subscriber users although I have added all the roles in the plugin setting.
- I have tried to add function to function.php in my theme but I can not find the right one
pleeeese help me
Woocommerce get products ordered by date and hour
I need to do an
SQLrequest that get all the products with quantity of all orders of the period
(start date/End Date)to know how many of each products I need to take in warehouse.
For example, if today I had 3 orders of Apple :
John Doe : 10 Apples
John Smith : 7 Apples
Michael Chuck : 3 Apples
The result of the
SQLrequest of today for the product Apple would be :
Apples : 20
regarding emails from website
i have a website eg example.com, which is related to user management system. we have email hosting from other email hosting provider than our web hosting provider. There is some requirement for sending and receiving emails. when i am configuring php mail function as
$to = 'firstname.lastname@example.org'; $from= ' email@example.com'; mail($to,"subject", $from);
this function is not sending mail ,this is only working when 'to' email is like firstname.lastname@example.org or any email which is @example.com and 'from' email anything other than '@example.com' like
$to = 'email@example.com'; $from= 'firstname.lastname@example.org'; and then mail($to,"subject", $from);
I want to ask why is such happening, Do i need to configure my web hosting server or mail hosting server. So that i can send emails to any person from my website , and receive emails from any server including my own web hosting server.
is there any way to redirect domain to two different ips
In my friend's office he has 2 public ips and its configured in fortigate with load balancing. Also he has 1 web server and his clients accessing the portal with isp1 primarily and clients sometimes accessing the portal using isp2 also if isp1 goes down. but every time he is informing the clients to use alternate 1 if any 1 isp goes down. if we buy 1 domain from registrar, can we redirect that domain to these isp1 ip or isp2 ip if any 1 goes down. Or any other way to switch the ip to reach webserver without informing clients.
Thanks in advance. Kumar B
Apache tomcat server local host url
when i run my application using tomcat server in eclipse i will be redirected to following URL:
/loginis my controller request mapping , but
exampleis also getting appended. How can I remove that from my URL.
the following is my server.xml
<?xml version="1.0" encoding="UTF-8"?> <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener"/> <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/> <GlobalNamingResources> <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/> </GlobalNamingResources> <Service name="Catalina"> <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/> <Engine defaultHost="localhost" name="Catalina"> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log" suffix=".txt"/> <Context docBase="sourcelead" path="/sourcelead" reloadable="true" source="org.eclipse.jst.jee.server:sourcelead"/><Context docBase="spring-mvc" path="/spring-mvc" reloadable="true" source="org.eclipse.jst.jee.server:spring-mvc"/></Host> </Engine> </Service> </Server>