patv
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Category pages consequencesIt’s url will change from example.com/directory/wp-admin to example.com/wp-admin. It’s not managed the same way as your pages would be wordpress. wp-admin is actually a directory in the wordpress structure so since you’re migrating the wordpress directory, the url to this interface will be migrated accordingly aswell.
Cheers.
Forum: Fixing WordPress
In reply to: Library keeps kicking me out!The only thing I can think is that for some reasons your session invalidates itself, have you checked to see if you can recreate the problem after deactivating all plugins?
Forum: Fixing WordPress
In reply to: CommentsHave you tried calling comments_template()?
This will call your comments.php file, though if it’s not defined in your theme i think it defaults to either the 2010 or 2011 default theme.
Forum: Fixing WordPress
In reply to: the_excerpt()You can redefine the length of the_excerpt() with the following filter:
function custom_excerpt_length( $length ) { return 60; } add_filter( 'excerpt_length', 'custom_excerpt_length');
Forum: Fixing WordPress
In reply to: Category pages consequencesAre you talking about transfering your site to a totally new domain or are you simply migrating it to a new directory (such as example.com/dir to example.com?)
If you’re keeping the same domain and simply moving the files to a new directory (or to the root) then yes it will be connecting to the same database (the settings in your wp-config.php won’t change) and yes it should (if i understand correctly) be as easy as updating the two options.
Those two options tell your site where you home is situated (for your home page templating) and also what is the base directory of your website (so that it knows where to point to files and such relative to the siteurl)
Forum: Fixing WordPress
In reply to: Category pages consequencesIt won’t matter that you’re using category pages, they are retrieving data from your database, so if your page can’t connect to your database after migrating, you have bigger problems to resolve.
Forum: Fixing WordPress
In reply to: Category pages consequencesYeah with this you should be fine:
update_option('siteurl','https://example.com'); update_option('home','https://example.com');
Forum: Fixing WordPress
In reply to: Category pages consequencesFrom what I understand you want to create multiple categories for your posts, so that you can create separate pages for each of these categories? Also, it seems that you are working form a dev domain (or locally) and you will be transferring these to your main domain?
For the transferring, it won’t be any more difficult than transferring your site as you would normally do so. As for the consequences, I don’t see any, or maybe i don’t fully understand the situation. But from what I understand, you have two solutions based on how you manage your navigation bar:
1- static nav bar (you set its items manually and point them manually to your pages)
You can get wordpress to generate you a permalink to point to your category listing (or page) and have these pages templated using category-{slug or id}.php. This is the solution i’ve used in the past.2- dynamic nav bar (dynamically grows when you add pages)
Not sure how to inject items to a dynamic menu (since I think it’s 100% generated by wordpress), but I would create a page in your wordpress for each category listing and in your template file use the get_posts() to extract the correct category value.Let me know if this is what you’re looking for or if I’m way off base.
Forum: Fixing WordPress
In reply to: How to extract nth paragraphs from contentI’ve worked it out… WordPress’ linebreaks can be detected using ‘\n\r\n’. This makes for a clean segmentation of the paragraphs using get_the_content (if not filtered using ‘the_content’).
Forum: Fixing WordPress
In reply to: How to extract nth paragraphs from contentI’m using the_excerpt for another function – and I don’t want to assume the client will copy over the exact same content into the excerpt while I’m quite literally extracting from the post’s content.
Forum: Fixing WordPress
In reply to: the_content() not displaying$posts = get_posts($args);
foreach($posts as $post) :
setup_postdata($post);/*the_content()*/
endforeach;
In case anyone falls onto this thread. setup_postdata($post) seems to fix it.
Forum: Plugins
In reply to: [Facebook] [Plugin: Facebook] API Error Code: 191Make sure you’ve set up your app domain and your ‘Website with Facebook Login’ setting correctly.
Forum: Plugins
In reply to: [Facebook] [Plugin: Facebook] [bug] Problems when publishing to a pageI can confirm that this worked for me (on WP 3.4). Thanks Tareq.
Forum: Plugins
In reply to: [Facebook] [Plugin: Facebook] Just auto posted an Auto DraftFound this useful thread on how to remedy this problem (if even temporarily until the next update). Fixed this issue for me.
Forum: Plugins
In reply to: [Facebook] [Plugin: Facebook] Just auto posted an Auto DraftI’m having the same issue as above. I’ve just completed the setup so maybe you have to give it abit of time before it works properly – i’ve tried setting a category on my posts but i still get the auto-drafts.
Slowdlveza, Brayne. Have you been able to reproduce the problem again since? I’ll let you know if it resolves itself.