Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter chea24

    (@chea24)

    I ended up using a plugin for this. WP-Postviews.

    I installed it and right out of the box if you want to sort by most views via URL you just add this to the end of a link.

    /v_sortby=views&v_orderby=desc

    Thread Starter chea24

    (@chea24)

    Okay I solved my problem using a plugin. I try to avoid plugins but my coding experience is minimal so I gave up and went with a plugin.

    I wanted to allow users to sort posts on the front end by most popular via url link. I was able to do this with WP-Postviews Plugin. The plugin tracks post views and if you want to sort by most viewed you can add a line of code to a php file or you can simply add this to the end of a url:

    /?v_sortby=views&v_orderby=desc

    It works with custom post types and custom taxonomies.

    Thread Starter chea24

    (@chea24)

    Thanks for the reply. That did something. It made it so all my posts are being ordered by meta key and value.

    But I want to make it so that when a user clicks a link on the front end the posts will be displayed by meta key and value.

    like this for example:

    Sort by Title
    https://www.mysite,com/category/books/?order=asc&orderby=title

    I am able to sort posts in a category by date and I can sort by title but I can’t seem to figure out how to sort by meta key and value.

    Thread Starter chea24

    (@chea24)

    Yes. And after reading that and various forums my solution was to create a template file for every taxonomy and enter this code:

    $wp_query->query(‘meta_key=views_count&orderby=meta_value_num&post_type=yabba’.’&paged=’.$paged);
    ?>

    Then create pages for every taxonomy and assign the page templates for every page.

    But there is probably a better solution. Any help?

    [No bumping. If it’s that urgent, consider hiring someone.]

    Thread Starter chea24

    (@chea24)

    nm, I just added .st_facebook_large to my css.

    Try putting quotes around your site url and then search. Like: “mysite.com”. If that works, it means Google is indexing your site.

    If I’m not mistaken, for every search, Google will list 100 pages with 10 results on each page. That’s 1000 results. So if your site isn’t showing up when you search certain keywords, it’s because your site doesn’t rank within the top 1000 results for that keyword.

    Check your Google Page Rank here:

    https://www.prchecker.info/check_page_rank.php

    I’m guessing you have a PR of 0 or 1. You need to increase that number.
    The best way to do that would be to add lots of unique content to your site and do your best to increase traffic to your site. Start a Facebook page, Tumbler, Youtube, Twitter, Yahoo Answers, etc. There’s lots of ways to get traffic to your site.

    Another important step to increasing PR is back-linking. You basically need to spam your site throughout the internet. Post comments on blogs and leave your site url if the option is available. You can also look online for other site owners who would be willing to exchange links with you. Give them your link to list somewhere on their site and you do the same for them. You can also buy back-links if you want to invest and save some time and work.

    Get your link out there, drive up your traffic, lots of unique original content, and Google will start to notice you. BTW, 2 months is still a very new site.

    This code listed below calls for your sidebar. Look for that code in all your php files (home.php, etc) and remove it.

    <?php get_sidebar(); ?>

    After that you would have to edit your theme. I suggest using a free trial of Stylizer for that. Or you can use any css editor to make your content fit your pages once your sidebar has been removed.

    Thread Starter chea24

    (@chea24)

    I checked that before but I have no idea what any of that means.

    Basically I have a Youtube image stored on my site. It’s a small youtube logo. What I want to do is have it so when I enter the youtube url into the custom field value the outcome would be the youtube image that links to the youtube video.

    I always hit a brick wall with custom fields. I have very limited experience with code too.

    Thread Starter chea24

    (@chea24)

    Actually, it had nothing to do with this awesome plugin. It was something on my end.

    How would I add those classes (eModal eModal-2) to a link like this:

    <a href="#">click</a>

    Thread Starter chea24

    (@chea24)

    Thank you! That was the answer. It worked.

    Thread Starter chea24

    (@chea24)

    It Worked! Thank you. I really appreciate that. I spent hours trying to figure that out. I knew if I didn’t post in the support forums I’d end up spending days, lol. Thanks for your help.

    Thread Starter chea24

    (@chea24)

    Can you show me in this code? Also, I’m adding this to the content area of my post. But what is happening is the link is showing up on all posts. Can you show me how to properly make it so the custom field value only show for the post that I post it in?

    <p><a href="<?php echo get_post_meta($post->ID, 'youtube', true); ?>">Youtube</a></p>

    Thread Starter chea24

    (@chea24)

    THANK YOU!!!!! I was struggling with that for so long! My brother usually helps with functions and custom fields but he’s not here. Thank you again.

Viewing 14 replies - 1 through 14 (of 14 total)