ohsheglows
Forum Replies Created
-
Forum: Themes and Templates
In reply to: AutoFocus Theme Remove Featured ImageAny chance someone has figured this out?
Forum: Fixing WordPress
In reply to: RSS Feed Error – Duplicate AttributeI figured out my issue. The following attribute was displaying twice:
xmlns:slash=”https://purl.org/rss/1.0/modules/slash/”
Inside the file: /wp-includes/feed-rss2.php there is a section:
xmlns:slash=”https://purl.org/rss/1.0/modules/slash/”
<?php do_action(‘rss2_ns’); ?>It appears the function do_action(‘rss2_ns’) also puts in the line above it. So I removed the line above (xmlns:slash=”https://purl.org/rss/1.0/modules/slash/”) and it appears to work now.
Hope this helps others.
Forum: Plugins
In reply to: Want to create custom php page to pull WordPress contentWell I couldn’t figure out to setup a redirect within WordPress to go to my php page. But I used the solution in this thread: https://www.ads-software.com/support/topic/174334?replies=4 by RogerTheriault. Then I created a print style sheet to strip everything off the page. A little tedious, but its working good now.
In your php.ini file (I’m not sure about godaddy) but on bluehost you can put a php.ini file in the directory of where your script executes to overwrite the default php.ini settings (that most likely you don’t have access to).
Try changing these lines:
max_execution_time = 300 ;
max_input_time = 300 ;By default the max_input_time on bluehost was 60 seconds and I had 300 posts with tons of images to import so it would crap out all the time. Changing it to 300 will give it 5 minutes to import, you may need to even go longer though…
There is also this line in the php.ini file as well:
memory_limit = 32M ;You may want to make sure the memory_limit is larger than the file your importing (double the size would be safe).
Hopefully that helps someone. If you find this isn’t working contact your hosting provider to find out how you can edit the php.ini file.
Forum: Fixing WordPress
In reply to: Post Categories miscountI imported from wordpress.com but I have version 2.7 and this query worked for me to fix the count number as my counts were all off after the import as well.
UPDATE wp_term_taxonomy
SET wp_term_taxonomy.count =
(SELECT count(wp_term_relationships.term_taxonomy_id)
FROM wp_term_relationships, wp_posts
WHERE wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id
AND wp_term_relationships.object_id = wp_posts.ID
AND wp_posts.post_type = ‘post’)Hopefully that will fix it. You may want to do a backup just in case, but the only thing this query can do if it doesn’t work would be mess up your count (which is already messed up).
Forum: Installing WordPress
In reply to: Categories missing after upgradeTry this:
https://www.ads-software.com/extend/plugins/wp-dbmanager/
If it is just the count field in your databse and you have version 2.7 you can try this Query to update your category counts
UPDATE wp_term_taxonomy
SET wp_term_taxonomy.count =
(SELECT count(wp_term_relationships.term_taxonomy_id)
FROM wp_term_relationships, wp_posts
WHERE wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id
AND wp_term_relationships.object_id = wp_posts.ID
AND wp_posts.post_type = ‘post’)Forum: Installing WordPress
In reply to: WordPress Categories Not linked through postsI figured out the SQL command to get the count field updated which in turn fixed my category listing problem. Here is the command below:
UPDATE wp_term_taxonomy
SET wp_term_taxonomy.count =
(SELECT count(wp_term_relationships.term_taxonomy_id)
FROM wp_term_relationships, wp_posts
WHERE wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id
AND wp_term_relationships.object_id = wp_posts.ID
AND wp_posts.post_type = ‘post’)Forum: Installing WordPress
In reply to: WordPress Categories Not linked through postsI think I found the issue… In the database in the wp_term_taxonomy table the “count” column is 0 across the board (except for a few categories). How can I update the count column to the correct numbers?