ccarlow
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: mixed content trying to secure ssl on checkoutThanks for the input to all.
My problem is that I am working with a theme that has been sold off to another group of people who want me to buy in for support but I plan to move toward a different theme in the coming months so I will wait it out.
I got the idea that I need to change the http to https which seems simple. I just don’t know where that address change is store to change it.
Forum: Hacks
In reply to: need to get post and/or page ID – need input on php codeI found out a piece of code that works plus it works on both post and page ID
<?php $page_idlist = array(4708, 4534, 4533, 4531, 4530, 4529, 4528, 4832, 4833, 4666, 4665, 4659, 4657); ?>
<?php if (!in_array($post->ID, $page_idlist)) : ?>Forum: Fixing WordPress
In reply to: Creating page Template with different headerI am trying to place php code in my header.php to identify all main pages related to my courses and woocommerce store.
I have created the below code and each number in the array represents a page ID. This php code works for every page ID except woocommerce “shop” – page id 4528.
Anyone know why isn’t the page_id being recognized:
Here’s code:
<!– My test code –>
<?php if (is_page( array( 4708, 4534, 4533, 4531, 4530, 4529, 4528 ) ) ) : ?>
<div>This is a course page</div>
<?php else : ?>
<!– do nothing –>
<?php endif ?>
<!– my test code to be removed – end –>Forum: Fixing WordPress
In reply to: Creating page Template with different headerI think I have a working syntax
There are different syntax<?php if ( expression) : ?>
<!– info here –>
<?php else : ?>
<!– alt info here –>
<?php endif ?>I like this format because the endif statement helps identify the end easily.
Forum: Fixing WordPress
In reply to: Creating page Template with different headerI’m not understanding the php format <?php if(is_page(19)) { ?>
How do I write an if else statement based on your format which is working for me but I want to exclude parts of the header if a page id rrelated to my course is being viewed.
the IF else statement code I found has a different format and I’m not understanding the difference for the “else” statement.
i.e.
<?php
$t = date(“H”);if ($t < “20”) {
echo “Have a good day!”;
} else {
echo “Have a good night!”;
}
?>Forum: Fixing WordPress
In reply to: Creating page Template with different headerI was hoping to find a simple template I can reference through the “Page Attributes – drop down”. I need to effect more than the header at this time now.
I’ll play around with the code you suggested Mehreen_Arshad – thx.
Forum: Fixing WordPress
In reply to: redirect domain to subfolder while build new rootOk I think I solved the problem and will post it below. I simple encapulasted the begin/end wordpress code in the htaccess file with an <IfDefine ip address> – I redirected the domain name pjnphoto.com to a subdirectory and I use the ip address in the root to develop a new wordpress site. the IfDefine only allows the Begin/Edn wordpress code to run if ip is defined so that when pjnphoto.com is used in the url it gets redirected to the subdirectory.
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
# BlueHost.com – all lines above are the original code lines before this below edit to redirect to subdirectory
# .htaccess main domain to subdirectory redirect
# Do not change this line.
RewriteEngine on
# Change example.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?pjnphoto.com$
# Change ‘subdirectory’ to be the directory you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/pjnphoto/
# Don’t change the following two lines.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change ‘subdirectory’ to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /pjnphoto/$1
# Change example.com to be your main domain again.
# Change ‘subdirectory’ to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?pjnphoto.com$
RewriteRule ^(/)?$ pjnphoto/index.html [L]
# if ip goto wordpress site in root; when domain name pjnphoto.com is # used – goto subdirectory where live site is temporarily located
<IfDefine 66.147.244.61>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~pjnphoto/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~pjnphoto/index.php [L]
</IfModule># END WordPress
</IfDefine>Forum: Fixing WordPress
In reply to: redirect domain to subfolder while build new rootAdditional helpful: Could someone explain to me why wordpress adds the below code to my htaccess file and what exactly is it trying to accomplish?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~pjnphoto/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~pjnphoto/index.php [L]
</IfModule># END WordPress
No I want wordpress in the root. I am redesigning the old website so it will eventually be served at the root level but currently I have the old website in a subdirectory (not a wordpress site). The problem is the domain name is redirected to the subdirectory from the htcaccess file. As I develop the new wordpress site in the root directory the pages get redirected to the subdirectory. I realized I need to set both wordpress address and site address under general settings to use ip address instead of pjnphoto.com. I assume once I get the root site set up I can remove the redirect in the hctaccess file and edit the wordpress and site address under general settings back to pjnphoto instead of ip and it should go live from the root without any addressing issues.
Forum: Fixing WordPress
In reply to: posting infographics to social media not through blogthanks for your input. I did find that mailpoet (newsletter plugin) can send auto newsletter of latest posts and exclude certain categories. I’ll place the info graphic post in a special category. That should work.
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] BFT Autoresponder IssuesMy site – natureshealing.info
I’ve just updated bft autoresponder 2.1.1.1I do not receive emails when I do a sample test on my own email. I do see my email entered in the mailing list unactivated. I am using a double optin on the free plugin version.
I have tried deactivating and reactivating but still receive no emails either to user or email notification to admin.
I setup a cron job through my bluehost account but I have a question on the above statement:
You need a cron job as explained in the first line of the main autoresponder page.
You say – in the first line? Do you mean the first line of code?
You say – of the main autoresponder page? Do you mean the page where the autoresponder form code is manually inserted? I have the form coded inserted into the header.php file so it appears on all site pages. Am I ok setting up a cron job via my hosting service or do I need to be entering in a line of code in the autoresponder form page? If I need to add code to form page – what does the code look like?Thanks for any help in advance you can offer.
I’m answering my own question. I found that the link is clickable if if I place html code {{url}} around the {{url}}.
It wasn’t obvious to me.
Forum: Themes and Templates
In reply to: [Twenty Twelve] Need help to add date and byline under titleI’m trying to add a byline per this post but my theme doesn’t have a content.php. I use custom community theme. Is there another name perhaps?
Forum: Fixing WordPress
In reply to: create a single author pageThanks for the reply. I starter this project because I have interest in having my photo displayed up with my posts on the google search page. I realized I didn’t have an author page or profile to link to from the google+ profile. I’m not sure if I’m on the right track but I believe I need to set up an author or profile page. I found the authorsure plugin to help me place bylines throughout my posts and link to google+ but the piece I’m missing is having a author page. I tried loading buddypress as suggested by another and well it’s not looking pretty as you can see from the previously listed link. I’m sure how to edit this buddypress member page – something I guess I need to figure out but before I do all this I’m wondering if there’s a better way. Am I on the right track or what?
Thanks for your response!
Forum: Fixing WordPress
In reply to: pages not being displayedI’m still working on this problem. I have deleted the 2 pages in question diet-consult and lifestyle-consult. I emptied the trash. Then I recreated the diet-consult page using all the same content except for the permalink “diet-consult” – I used test. The page is viewable. When I simply change the permalink name to the original – “diet-consult” the page error comes up again. It doesn’t load the theme with an error message it comes up with an error as in the past that the page isn’t redirecting properly. When I check my .htaccess file I have 2 lines of code to redirect /diet – i.e.
RedirectMatch 301 (?i)/Diet.htm https://www.natureshealing.info/diet-consult/
RedirectMatch 301 (?i)/diet https://natureshealing.info/diet-consult/Also another funny thing I have noticed I get the same error if I type in the address different variation of the page name but always beginning with diet i.e. diettt or diet876 where as if I type in some eroneous title it shows the theme framework and tells me page can’t be found.
Still needing some help here.