allyngibson
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg] Default paragraph blocks not workingI went through my plugins and, with experimentation, found that disabling the TinyMCE Advanced plugin restored Gutenberg’s paragraph block.
Forum: Plugins
In reply to: [Gutenberg] Default paragraph blocks not workingSame thing happened to me — I have Classic and Classic Paragraph blocks, but I don’t have the simple Paragraph block anymore. I’ve not posted in a week, so I don’t know if it’s due to the 5.0.1 upgrade or the Classic Editor plugin.
I don’t mind the Classic Editor block, but if I want to write in something like the Classic Editor, then I’ll use the Classic Editor.
Forum: Themes and Templates
In reply to: [Hitchcock] Infinite scroll – lazy load /You need to set up a child theme for infinite scroll. I have Jetpack enabled, and this is the code I use for my website in my functions.php:
// infinite scroll posts per loop function iona_infinite_scroll_settings( $args ) { if ( is_array( $args ) ) $args['posts_per_page'] = 12; $args['type'] = 'scroll'; return $args; } add_filter( 'infinite_scroll_settings', 'iona_infinite_scroll_settings' );
The reason I chose 12 posts per page is because Hitchcock does three posts across, so that loads four even rows at a time.
Forum: Plugins
In reply to: [Tools for Twitter] Importing Twitter's JSON archive of my tweetsApyus, if you’re still looking for a way to make that work, here’s what I did.
The code needs Twitter Tools to be loaded, so I created a page template, then created a page in WordPress using that template, then previewed the new page, triggering the code.
I had uploaded all of my .js files into a Tweets directory in my website’s home directory.
This is the full template that I used:
<?php /* Template Name: Backfill Tweets */ header('Content-Type: text/html charset='.get_option('blog_charset'), true); echo "<html>"; echo "\n"; echo "<body>"; $dir_path = "tweets/"; $haveCount = 0; $addCount = 0; if (is_dir($dir_path)) { if ($dir_handler = opendir($dir_path)) { while (($file = readdir($dir_handler)) !== false) { if(strpos($file, ".js") > 0){ echo "loading " . $dir_path . $file . "<br />"; $contents = file_get_contents($dir_path . $file); $contents = substr($contents, strpos($contents, "[")); $contents = "{ \"json\" : $contents }"; $json = json_decode($contents); foreach($json->json as $twt){ $t = new AKTT_Tweet($twt); if (!$t->exists_by_guid()) { $t->add(); echo "adding " . $t->id() . "<br>"; $addCount++; }else{ echo "passing " . $t->id() . "<br>"; $haveCount ++; } } } } closedir($dir_handler); } } echo "adding: $addCount<br>"; echo "have: $haveCount<br>"; echo "</body>"; echo "\n"; echo "</html>"; ?>
It took, all told, about two hours to load the 17,000 tweets I’ve made in the last four years.
Hope that helps. ??
The next thing, for me, is to create daily Twitter digest now that I have all of this data. I’ve worked out a way of making it happen. This weekend I’ll code it, and it will be grand.
Forum: Themes and Templates
In reply to: Minileven for self-hosted blogs?Openletter, you can get Minileven to work with the self-hosted WordPress. ??
The theme files are here in the WordPress.com themes repository. Save each file to a directory called “Minileven.” Make you grab the JS directory and the file within it as well.
Download the WordPress Mobile Edition plugin.
Extract just wp-mobile.php from the plugin. The line near the beginning that reads:
define(‘CF_MOBILE_THEME’, ‘carrington’);
Change to:
define(‘CF_MOBILE_THEME’, ‘minileven’);
Upload the edited wp-mobile.php to your Plugins directory.
Upload the Minileven directory you created to your Themes directory.
Activate the plugin.
Done. ??
Forum: Fixing WordPress
In reply to: Weird Spam (?) links in Blog StatsI think it’s an issue on WordPress.com’s end.
I usually access my states through the WordPress.com dashboard, rather than my own website’s dashboard, and what I’ve seen recently has been…
1) Links to posts on my website with the wrong permalink structure, but the titles are correct
2) Links that are a post ID number that link to my website correctly
3) Links that are a post ID number that link to a WordPress.com-hosted blogThat’s seems to me like a database issue on their end.
Forum: Plugins
In reply to: A true tag index, all tags listed on a single pageThat’s actually very simple. What you want to do is to create a Tag archive page using a custom page template, but instead of making it a cloud, make it a list. ??
There are some instructions here. Here’s what I’d do.
Make a copy of the page.php file in your theme. Call it tag-archive.php.
Open the file. Find the line that reads at the top:
<?php get_header(); ?>
Replace that line with:
<?php
/*
Template Name: Ingredients
*/get_header(); ?>
Then find the line in that reads:
<?php the_content();?>
(It looks like you’re running the Thesis theme, so you may have other stuff inside the parentheses. That’s okay.)
Replace that line with:
<?php wp_tag_cloud('smallest=10&largest=10.5&format=list&number=5000&orderby=name'); ?>
I’m taking a guess at the sizes. You can make the two numbers — smallest and largest — the same, but I don’t recommend it; it causes a division-by-zero error in the code and the list comes out looking wonky.
This won’t give you the number after the tag’s name, unfortunately; WordPress isn’t set up to show that on the page. (Ironically, if you hover over the tag, I believe it does.)
Save that file, upload it to your theme directory (or child directory, in your case). Create a new page, call it something like “Ingredients Index” or something like that, and select the Ingredients page template in the “Page Attributes” sidebar box on the page screen. You don’t need to add any text to the content window; even if you do, it won’t show. ??
That should do it. If you get stuck (which you shouldn’t), here’s another example, here’s one in the WordPress codex. It’s really pretty quick and painless. ??
Forum: Themes and Templates
In reply to: Where can I download Coraline?You can download the individual files from here:
https://svn.automattic.com/wpcom-themes/coraline/
And build the theme that way.
It may be better to wait for the official .org release, though; that’s a lot of files to download. ??
Forum: Fixing WordPress
In reply to: opera10 wp2.8 theme editorHave you tried “spoofing” your User-Agent string to identify your browser as Firefox to your WordPress admin panels? I can’t speak for 2.8, but some of the earlier versions browser-sniffed and rendered incomplete pages to Opera. (I’m thinking of the Write Post page specifically, where the Press It! bookmarklet didn’t appear in Opera.)
Forum: Fixing WordPress
In reply to: A question about Char Set Attacks and attacks in generalI saw a very similar string in my website logs last night.
I was a little afraid to “run” the URL and see what happened, but I got exactly what I was hoping to get — the post referred to in the string out of the sitelogs.
I’m breathing a sigh of relief. ??
Forum: Themes and Templates
In reply to: Hemingway block title issueI’m not familiar with that particular modification of Hemingway, but I am familiar with Hemingway, as I used to run it myself.
I’m going to take a stab that the problem is that you have a link category called “Other Stuff of Mine.” And that when you’re using the Links block from Hemingway, the way it’s called it’s inserting in the link category as well.
Y’know, let me look at the code. I have your variant on my computer’s hard drive.
Yep, that’s exactly what the problem is.
In the blocks subdirectory of your theme, open up the blogroll.php file.
Change this:
get_links_list(1, '<h2>', '</h2>');
To this:
wp_list_bookmarks('categorize=0&category=1&show_images=0');
I think that should take care of the issue, and you won’t have formatting problem. Give it a try, and if it doesn’t work, let me know. We’ll try something else. ??
Forum: Themes and Templates
In reply to: Multilingual hemingway, sidebar on individual pages?One issue is that the page.php file isn’t set up to have a sidebar area. You could cobble one together if you set up a div=”primary” (for the content) and a div=”secondary” (for the sidebar), which would pick up the formatting out of your stylesheet.
It’s doable.
Forum: Themes and Templates
In reply to: Multilingual hemingway, sidebar on individual pages?I downloaded Multilingual Hemingway to take a look at the code. I would put the code listed above in single.php. Specifically, right above the line that begins:
<php edit_post_link
Forum: Fixing WordPress
In reply to: The_content still displays post as the_excerpt in archive.phpWithout seeing your archive.php code, I don’t know that anyone could help you.
Forum: Themes and Templates
In reply to: Entire site is bold in Safari!You have an error in your sidebar. Look at the coding for the CleverParents.com ad. What you have is (with brackets replacing less-than and greater-than signs:
[p strong]You should change that to:
[p][strong]Basically, the browser is getting confused because you have a closing strong tag but no opening tag. And you have no closing p tags.