Icethrill
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to make wordpress site using relative links only?What the two above functions does is this:
1. You can use the first function when you code, when you want to strip out for example: “https://www.example.com/hello” to-> “/hello”
2. The second function is a filter added to modify the “the_permalink” filter, this filter is used for posts, pages and other post types for generating their permalink. So a post with permalink: “https://example.com/2011/09/27/hello-world” would become: “/2011/09/32”
Your questions:
1. The menu links is not affected by the “the_permalink” filter. So no, it would not effect the WordPress menu system. There might exist a similiar filter to modify these links, though that I do not know.Forum: Fixing WordPress
In reply to: Error while trying to update WordPressAnother user posted this reply in a similiar thread: (4 possible solutions)
—
1. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 32M try 64M:
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)2. If you don’t have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 64M3. Try adding this line to your wp-config.php file:
define(‘WP_MEMORY_LIMIT’, ’64M’);4. Talk to your host.
—Your problem seems to be that you need to increase the PHP memory limit. Though I might be wrong on this one.
Forum: Fixing WordPress
In reply to: How to find the number of post in category?Forgot to add the array(). Try it out the above code now. The function above should be added in your themes functions.php file
Forum: Fixing WordPress
In reply to: How to make wordpress site using relative links only?Making WordPress URLs root relative
WP is built around absolute URLs, so keep this in mind when you try out the above function.
Forum: Fixing WordPress
In reply to: How to find the number of post in category?[code moderated – please use the pastebin]
I wrote this function just now, havent tested it out. It should work. Might need some more parameters for the query though…
Yeah your right, I noticed a difference in page speed. But after an hour or so the problems started occuring again. So my above fix, did not solve anything. Trigger happy I guess.
I have used CFT alot, 1.5 years. You can use WordPress normal get_post_meta function with Custom Field Template. Post relationship etc is missing in CFT. And you really need to get used to his weird “field group”-creation methods. It has LOTS of options, you just need to find them. Its easier to get started with ACF then CFT. But CFT has been around for a long time, so yes. I would recommend it.
If you know how to code, the alchemy script is an option. link
—And the plugin author should only load scripts when the fields are loaded and used, its considered best practice. Now in ACF date, wysiwyg and lots of other scripts are loaded on every page in the admin.
Install GD Press Tools (link), delete all post revisions WordPress has saved for the ACF post type. I have had no problems since.
If the problem is the post revisions, you can change how many is saved by adding this code into the wp-config.php file:
// The code below will make WP only save 2 revisions MAX define('WP_POST_REVISIONS', 2);
I had 18 revisions of ONE field group. Everytime you change a field, a revision is probably created (or depending how you save the group field maybe).
Usually its /wp-admin/css/colors-fresh.css thats stops loading for me.
Like 70% of the time atleast. And this is when I am logged into the admin. And upgrading to WP 3.3.1 did not solve anything, that I can confirm.
Forum: Fixing WordPress
In reply to: A possible 3.3.1 bug – post categories unchecked when editing postsSeems like it started working again… now thats weird. Oh well. For now its “Resolved”.
I am using version 3.0.6, upgraded to WP 3.3.1 now.
Edit:
Now my post categories is unchecked when I upgraded WP to 3.3.1. Though its not an ACF problem, seems to be a WP 3.3.1 bug… I am using the normal categories on a custom post type.
I am only using ACF at the moment. The plugin author is on holidays in France until 25 january. So no fix until then atleast.
I haven’t really had any luck in my debugging. My freezes occur with no real pattern. It can be when I save a post, edit a post, view the dashboard, save any acf fields and it can also occur on the front end (Not really that common for me). With the firebug NET panel I saw that Firefox is trying to retrieve some css or js with a GET request. But the GET request never finishes and I have to reload the page in the adress bar. And what CSS or JS file its trying to load, can differ.
Is it the same error you guys are experiencing?
I am also experiencing this with a site I am developing. This is a major bug and needs to be fixed ASAP. If anyone finds a fix, please share.
I am gonna take some time to debug this, especially because this plugin saves me loads of development time. If I find something, will share it here then.
Love the plugin otherwise! ?? Would be a shame to choose another plugin for the job…
Forum: Fixing WordPress
In reply to: Pretty permalink problem with an subdirectory install of WPAlso, I believe this is a permalink / rewrite problem. Not a database issue, since everything is working fine without the web.config.
Forum: Fixing WordPress
In reply to: Pretty permalink problem with an subdirectory install of WPWhat do you mean point the correct URL in the database? The options table? I had already modified both the siteurl and the home row, they were already pointing to the subdirectory.
Reinstalled WP, reactivated the plugin, then set the settings.
Its now working for Guests. This is resolved!