Forum Replies Created

Viewing 15 replies - 61 through 75 (of 98 total)
  • Thread Starter harshclimate

    (@harshclimate)

    bc! Yeah, I’m using custom queries, but I did reset posts at the end of each…

    @sterndata Can the post thumbnail accept parameters that he has specified? I didn’t know you could do that…

    Thread Starter harshclimate

    (@harshclimate)

    Found this bit of info from WP Stackexchange:

    $query_images_args = array(
        'post_type' => 'attachment',
        'post_mime_type' =>'image',
        'post_status' => 'inherit',
        'posts_per_page' => -1,
        'tax_query' => array(
            array(
                'taxonomy' => 'attachment_category',
                'field'    => 'slug',
                'terms'    => 'SLUG OF YOUR TERM',
            ),
        ),
    );
    $query_images = new WP_Query( $query_images_args );

    A potential issue is that under the array asking for 'terms' => 'SLUG OF YOUR TERM' is being too specific. It would have to be dependent on what tag the user clicks.

    • This reply was modified 7 years, 2 months ago by harshclimate.
    Thread Starter harshclimate

    (@harshclimate)

    My coding skills are non-existent. I am able to use other people’s code ?? If I have their skeleton model, I can pretty much make it do what ever I need to do. But that’s mostly based on looks. My HTML and CSS skills are awesome, but php… forget it!

    I can obviously get by to build a theme from scratch in wordpress, but I do have issues trying to organize my thoughts to get something like yanking attachment images from a tag.

    I had a dream last night that I somehow need to grab the ingredients of the_content() in order to locate the attached images in a post. So when I get home tonight I’ll have to try and get that figured out.

    My “logic” tells me that I won’t be able to do it. But I will not give up!

    I’ll post more later when I have a look at that. If I can’t do it, can I pick your brain further?

    Thread Starter harshclimate

    (@harshclimate)

    Heya, BC! Long time no see!

    Well, you know in the backend of WP you can navigate to the media library, from there, you can select the image and assign a tag to that image. I know that you can pull data from the image description or caption. But I can’t see a way to extract that data.

    Can I show you my page right quick so I can better illustrate what I wanna do?

    My archives page

    When you go there, you’ll see the thumbnails on the right side. Those are the “featured” images for the respective posts. What I would like to do is, on the left, you’ll see the tag listing – When you click a tag, I would like every image associated with that tag to show up on the right where the featured images are.

    • This reply was modified 7 years, 2 months ago by harshclimate.
    Thread Starter harshclimate

    (@harshclimate)

    Thanks, Steve! I was actually hoping to not use a plugin. I’ve been building my theme for quite some time and would like full control over what I’m doing with it.

    In my archive page, I was able to grab all the categories used on the site (which is a pretty basic function) but I would assume that grabbing the tags used should be just as easy but I’m not seeing it out there. Perhaps my google skills aren’t what they should be?

    But assuming I can display all the tags I tag images with, how would those even get displayed in an un-ordered list? Then you click that term and it shows all the images associated with that term.

    Thread Starter harshclimate

    (@harshclimate)

    Tell me what you think. After I looked over your query, I decided to redo what I was working on and came up with this:

    https://gist.github.com/harshclimate/bcf99d6098e17028851e9f994d41bb67

    Thread Starter harshclimate

    (@harshclimate)

    Dang, thanks for your response! I didn’t even get notified of it for some reason. So that query will grab all the post thumbs from each post during that year? I assume then that it’ll keep adding years on top of the older year?

    I’m also trying to add that bit of code to my page-archives.php page and it’s only listing one post_thumb. That page-archives.php is a place where you can just click and view all the categories, posts and now thumbs. I figured it’d be better to have a page like this than to depend on someone clicking a category for more information.

    My photography website

    • This reply was modified 7 years, 2 months ago by harshclimate.
    • This reply was modified 7 years, 2 months ago by harshclimate.
    Thread Starter harshclimate

    (@harshclimate)

    Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
    Your site URL to be authorized: https://localhost/wordpress/category/journal/
    _.rb @ js?v=3.25&key=AIzaSyAeDFsKhFz9VxuJ76HWLaoPm7QFR2-HpWU&language=en&libraries=places:35
    (anonymous) @ common.js:50
    (anonymous) @ common.js:189
    c @ common.js:44
    (anonymous) @ AuthenticationService.Authenticate?1shttp%3A%2F%2Flocalhost%2Fwordpress%2Fcategory%2Fjournal%2F&4sAIzaSyAeDFsKhFz9VxuJ76HWLaoPm7QFR2-HpWU&callback=_xdc_._qr1e59&token=106642:1
    util.js:222 Google Maps API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version
    Thread Starter harshclimate

    (@harshclimate)

    Sorry bout the delayed response. I don’t get notified for some reason of any responses.

    No specific error comes up, but what does happen is that when the page first loads, a map of the world loads up for a split second then all i get is a distorted picture of an information exclamation mark like ! and a circle around it. Then that’s all that shows up. There is no map at all.

    Thread Starter harshclimate

    (@harshclimate)

    ? I am the theme developer. I don’t wish to publish this theme on wordpress because it’s just my theme. Should I direct my question to another part of this forum? I may have miscalculated my forum choice! Sorry!

    Thread Starter harshclimate

    (@harshclimate)

    Never mind. I think I just figured it out and what a doofus I am. I don’t know why it wasn’t working originally, but I ended up with just:

    if(is_page('photographs')) {
           echo 'This is the photographs page';
        } elseif (is_page('field-journal')) {
           echo 'This is the journal page';
        } elseif (is_page('information')) {
           echo 'This is the information page';
        }
    else echo 'None of the pages are showing';
    Thread Starter harshclimate

    (@harshclimate)

    Just a thought: I know I’ve already created the category-pages.php so I’m assuming there’s no where else for the categories to be displayed. They already are, right?

    I read somewhere that you couldn’t have a page like “Home” and “Blog” without making their respective pages a category. They both have different layouts and different content so I thought the method in which I used was the only way to do it.

    Thread Starter harshclimate

    (@harshclimate)

    Hi BC! Long time no see. Thanks for your expertise, bud. I’ll give what you added a shot in a bit. A comment, though… I didn’t know you could nest a loop inside of a loop? Is that what I’m seeing?

    • This reply was modified 7 years, 5 months ago by harshclimate.
    Thread Starter harshclimate

    (@harshclimate)

    Here’s the code in pastebin (thanks, Michael)

    https://pastebin.com/K7EYxQjS

Viewing 15 replies - 61 through 75 (of 98 total)