tmw27529
Forum Replies Created
-
Forum: Hacks
In reply to: Multiple Custom Meta Boxes & FieldsThanks bcworkz for the input! I really appreciate it!
Forum: Everything else WordPress
In reply to: Consolidating QueriesThis is where I am at so far (making a little improvement).
This appears to slim down things but the html is gone.$meta_keys = array('bldob_bdate','bldob_ddate','blser_date'); foreach ($meta_keys as $key) { $key_value = get_post_meta($post->ID, $key, true); if (!empty($key_value)) echo ''.$key_value; }Forum: Everything else WordPress
In reply to: Consolidating QueriesI feel like this section is repeating request. Can you do a get_post_meta only once? Divide it somehow to include the html and still retrieve it all?
<p><?php echo get_post_meta( get_the_ID(), 'bldob_bdate', true ); ?> ~ <?php echo get_post_meta( get_the_ID(), 'bldob_ddate', true ); ?></p> <p>Services will be held: <?php echo get_post_meta( get_the_ID(), 'blser_date', true ); ?></p>Right on! I am glad to I could kind-of point you in a good direction.
Im not going to lie it gave me a little boost to my ego this morning. Thanks!
Sorry I do not know about the other. Good Luck!Forum: Everything else WordPress
In reply to: Building a site for digital downloadsIt sounds like you are already deep into the build-out with WooCommerce, but I figured I would mention this anyways (maybe it could help in the future).
I used a WP-Filebase for one of our clients who just wanted to manage files and downloads. I was really impressed with its features and options.
Their “Extended Permissions” might be something that could help you.Forum: Everything else WordPress
In reply to: Consolidating QueriesMaybe…
I was thinking that an array was more for sorting (like post type, taxonomy, number of post to show).The site I am working on is for a funeral home. The custom post type (obituaries) admin post input page has multiple custom meta fields for things like the birth dates, date of death and then the dates of the services and locations, etc.
I want to make sure I am efficiently requesting all of these different fields to display them in the list on the main page and in a sidebar feed.
Here is a link to the obits page if you want to take a peek ObitsI fear I might be repeating the request when it is unnecessary.
I did and still continue to research my curiosity question to know better in the future. But I feel like I am running around in circles without clarification on how to best accomplish this. I hope I am close, or headed in the right direction.
Any reassurance or guidance would be greatly appreciated. I am such an advocate for WP here at my work and I want to be able to produce great, efficient things correctly.
Thank you for your time so far!I think this might be it under settings/discussion. Make sure these settings are unchecked.
Follow Blog
Show a ‘follow blog’ option in the comment form
Follow Comments
Show a ‘follow comments’ option in the comment formForum: Plugins
In reply to: [Really Simple CAPTCHA] Captcha image not loadingI am not sure if this helps (b/c I don’t understand it) but when I visit the actual source url of the image I get this message:
“Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.”
Forum: Plugins
In reply to: [Really Simple CAPTCHA] Captcha image not loadingWas this issue resolved?
I am running into the same issue of the image not loading but when I check via ftp the image is in the folder.
I am dealing with a server guy that does not seem to like to be bothered very much so I want to try everything I can before going back to him.
I have already asked him to verify that the GD and FreeType libraries are installed and he said that they were.
Any suggestions would be greatly appreciated!
Here is a link to the page the form is on http://cyberoptics.com/cocontact/Thank you in advance!
Forum: Networking WordPress
In reply to: Database ? phpmyadmin : sub sites with in network not workingtake that back .htaccess is 777
Forum: Networking WordPress
In reply to: Database ? phpmyadmin : sub sites with in network not working.htaccess is 755 how do I check the server configuration?
Forum: Networking WordPress
In reply to: Database ? phpmyadmin : sub sites with in network not workingThanks! I tried it out but still not working. Does it take some time for that file to kick in or anything? (sorry for my ignorance)
Here is what I changed it to# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^wp-index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . wp-index.php [L] # END WordPressForum: Networking WordPress
In reply to: Database ? phpmyadmin : sub sites with in network not workingIf the database is creating the tables for the new network sites then httpd.conf file should already be ok?
I so need a beer and its only 7:51am here :/ I fully expect to rip all my hair out today.
Please help! Ill buy you a beer!
Forum: Networking WordPress
In reply to: Database ? phpmyadmin : sub sites with in network not working8 hours later I do not believe that table_catlog NUll is wrong. How ever I still think its something server/database that is going on.
So I found this info which is useful (I think?). Should I ask the server guy about this?
PhpMyAdmin is a web tool for administering (and browsing) mysql based databases. Its extremely useful, and we installed it when we put php on (if you didn’t then yum –enablerepo=remi install phpmyadmin will do it), but the default configuration is to only allow access from localhost – which is not so useful on a NAS. So lets open that up so that the local subnet can use it. First edit the file /etc/httpd/conf.d/phpMyAdmin.conf and add the additional line to the directory settings:
<Directory /usr/share/phpMyAdmin/>
order deny,allow
deny from all
allow from 127.0.0.1
allow from 192.168.1.0/15
</Directory>If you wanted to allow access to everybody then you could just change it to:<Directory /usr/share/phpMyAdmin/>
order allow,deny
allow from all
</Directory>A restart (service httpd restart) is enough to pick this up. One other change that may be worth making is to add rewrite rules to force SSL on this connection. To do that we need to change the root virtual host config in /etc/httpd/conf/httpd.conf – adding in the two extra rules below:<VirtualHost *:80>
DocumentRoot /home/apache
ServerName yourhost.dyndns.org
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access_log combined
RewriteEngine On
RewriteRule ^/cube/(.*)$ https://mail.yourhost.dyndns.org/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^/phpmyadmin/(.*)$ https://%{HTTP_HOST}/phpmyadmin/$1 [R,L]
RewriteRule ^/phpMyAdmin/(.*)$ https://%{HTTP_HOST}/phpmyadmin/$1 [R,L]
</VirtualHost>After doing another restart (service httpd restart) you should be able to access http://ip address/phpmyadmin to access the database. The username and password you are prompted for it the database username and password.Forum: Networking WordPress
In reply to: multisite in subfolderAndrea! Thanks so much for all of your input and help. I have a lot of useful information posted by you. Thank you!
I noramlly change out the index.php after the rest of the site is set up, but Ive never set up the multi site so I didnt know if that would effect it. So most likely that is my problem?
Yah! This server guy is really old and doesnt seem to like to update, upgrade anything and just does not like new ideas on anything. I am thankful I only have to work with him on this one project.
Once again thank you for all of your help!