Forum Replies Created

Viewing 15 replies - 46 through 60 (of 71 total)
  • Is there a way to do this for the title? For the title that shows on the page, the title in the <title> function, and the title in the RSS feed, I’ve modified the title to include the custom post type before the title. For example, the “Accounting” page in the Employee Benefits Library has the title “Employee Benefits Library: Accounting”. However, I cannot figure out what the code would be to make the og:title attribute also be “Employee Benefits Library: Accounting” instead of just “Accounting”.

    Yep! Just put <!--noyarpp--> into the post to do what you’re talking about.

    You say, “I’ve read all of the WordPress anti-hacking sites I can find.” It might help if you say what you’ve tried so far. For example:

    * Do you have a user called “admin”? If so, changing that to something else is the biggest thing you can do to prevent hacking.
    * Have you changed the password for WordPress, your database, and your FTP to different strong ones?
    * Have you installed “Limit login attempts” and “Ban” plugins, and started banning IP addresses as soon as you receive notice that they have attempted to log in too many times?

    Thread Starter CarolWP

    (@carolwp)

    Fixed with Version 2.0.3.

    The comments feed is still not being removed from the accessible version. It’s in wp-includes/general-template.php, and is the line that reads:

    echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr(sprintf( $args['comstitle'], get_bloginfo('name'), $args['separator'] )) . '" href="' . get_feed_link( 'comments_' . get_default_feed() ) . "\" />\n";

    Given that this is the version used by, for example, blind people who use text readers, I’d really like not to be sending them off to a nonexistent feed. Any chance of fixing this?

    Unfortunately, this is a deliberate feature of this switcher. See this page for an explanation.

    You might try using the WordPress Mobile Pack plug-in, but a different mobile theme. What I’ve done on my site is to use the WordPress Mobile Pack as the switcher, but the Minileven theme. I got the Minileven theme files by downloading the Jetpack plugin, then extracting all the files from Jetpack > modules > minileven > pub > minileven to a folder called minileven in my themes directory. Alternatively, you could download each of them individually (not forgetting the ones in the js, inc, and languages subfolders) from here. I edited the footer.php file from minileven to read:

    <a href="<?php echo $current_url . '?wpmp_switcher=desktop'; ?>">Switch to our full site</a>

    I then used the WordPress Mobile Pack switcher to select minileven as my mobile theme.

    I prefer the WordPress Mobile Pack switcher to Jetpack, because Jetpack really seems to slow down my site. At the same time, the minileven theme seems to do better on rendering menus than the WordPress Mobile Pack ones do.

    Thread Starter CarolWP

    (@carolwp)

    Just answered my own question! I switched to using a new template to show the related posts. I edited the example template to read as follows, and called it yarpp-template-new.php:

    <?php
    /*
    YARPP Template: New
    Author: Me, based on mitcho (Michael Yoshitaka Erlewine)
    Description: My YARPP template.
    */
    ?>
    
    <?php if ( ( !is_sticky() ) && (have_posts())):?>
    
    <h3>Related Posts</h3>
    <ol>
    	<?php while (have_posts()) : the_post(); ?>
    	<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a><!-- (<?php the_score(); ?>)--></li>
    	<?php endwhile; ?>
    </ol><br><br>
    
    <?php endif; ?>

    If you have posts that are related, perhaps the issue is that YARPP doesn’t consider them related “enough.” You can fix this by going to the YARPP settings page, clicking on “Screen options” in the upper right, and checking the box for “Relatedness” options.” You will then be able to select a lower match threshold to make more posts show up as related.

    If you don’t yet have any posts that are related to each other, “no related posts” is what will show. You can fix this by going into settings, and deleting everything in the box that says, “Default display if no results:”. That way, related posts will show once you have them, but nothing will show for a post that doesn’t have related posts.

    I’d love to see something like this, as well.

    If you look in plugins/link-library/languages, it’s the file named link-library.pot There are several other files in that folder for different languages, which should help you to construct one for your own language.

    This just stopped working on my pages. However, it can be fixed by changing the line that reads:

    <form method=”get” id=”llsearch”>

    to

    <form method=”get” id=”llsearch” action=”https://www.example.com/search-page”&gt;

    substituting the URL for your search page for https://www.example.com/search-page

    I don’t know about you, but this just stopped working on my pages. If the same thing has happened on yours, it can be fixed by changing the line that reads:

    <form method="get" id="llsearch">

    to

    <form method="get" id="llsearch" action="https://www.example.com/search-page">

    substituting the URL for your search page for https://www.example.com/search-page

    I don’t think that Link Library was designed to work with the Hierarchical Links plug-in. However, I’ve achieved a hierarchical structure by using multiple libraries. You can see it in operation at this link. For a category that has subcategories, check out this link.

    The basic structure is described below. For purposes of my examples, let’s assume you want to have top-level categories of category1, category 2, etc. Then below category1, you want to have category1a, category1b, etc. You want your main page to be called linkspage.

    Step 1

    You set up Library 1 to contain all top-level categories (category1, category2, etc.). Switching Method is HTML Get+Permalinks. Do not check the Enable Permalinks option. However, do put linkspage as “Permalinks Page.”

    The code for the linkspage page is then:

    [link-library-cats settings=1]

    Step 2

    You then set up Library 2 that includes category1, category1a, category1b, etc. You check the box for “Only show one category at a time,” and select the number ID for category1 as the “Default category to be shown when only showing one at a time (numeric ID).”

    You then create a subpage of linkspage that is linkspage/category1. (To make this work, the slug for the page must be the same as the slug for the main category.) The code for linkspage/category1 is:

    [link-library-cats settings=2]
    [link-library settings=2]

    Repeat Step 2 for each of category2, category3, etc.

    The categories on your main (linkspage) page will now link to each of your subpages. And each of your subpages will now show the main category initially, but allow the viewer to choose to see a subcategory.

    Thread Starter CarolWP

    (@carolwp)

    Never mind–I got it! For anyone else with this issue, the source URL should be:

    ^/modules.php\?name=Downloads(.*)

Viewing 15 replies - 46 through 60 (of 71 total)