| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 1 month |
| seen | 20 hours ago | |
| stats | profile views | 64 |
|
May 2 |
comment |
Image sizes in posts Yes I am. I chose 150 by 150. The image when I drag it off the screen is 150 by 150 but wordpress is resising it to the featured image size. the width and height of the image in the code is wrong. add_image_size is for featured image only isn't it? I don't have any other sizes set in functions.php |
|
Apr 29 |
comment |
get meta value from page query Thank you both for your response. Toscho, it worked like a charm |
|
Apr 25 |
comment |
[solved]shortcode not executing in query fixed it. As it turns out, apply_filters does work but I was using it in the wrong place. I tried it on the return statement of the query shortcode and it worked |
|
Apr 21 |
comment |
getting all values for a custom field key (cross-post) It worked for me also. Thank you. |
|
Apr 21 |
comment |
wp_query in a shortcode Thank you for your reply. This helped a lot |
|
Apr 21 |
comment |
wp_query in a shortcode my syntax highlighter doesn't show a missing anything. I don't see one either. As far as the indenting. Is there a trick to getting it to work on this site? I do indent my code and then I have to spend 10 minutes trying to make it look readable here. Eventually, I get it close enough and post it. It loses all formatting when I copy it over |
|
Apr 19 |
comment |
pages won't show on front page using loop or pre_get_posts I am trying to do it because I am trying to make a one page WordPress site. I am trying to do it based on template hierarchy but it doesn't work. I fixed the issue above but now my issue is that it won't display the templates. It only displays the page content |
|
Apr 19 |
comment |
pages won't show on front page using loop or pre_get_posts You can include templates because I have done it. It just won't work the way it is set up right now. The code above is in front-page.php. I am trying to get the pages to show in that. For some reason it won't work. When I was doing the include, I just put in some code to say that if it was the homepage template then don't include that one. |
|
Apr 17 |
comment |
Control resizing of uploaded images because that is the opposite of what I am trying to do. I am adding a custom script to my site to handle the images. I am going to use WordPress built in features with the script. If you add image size then it will add those sizes plus all the others. I am also not talking about the post thumbnail in this question |
|
Apr 17 |
comment |
add_theme_support( 'post-thumbnails', array( 'post')); is not uploading the file are you adding the image from the featured image in the post edit screen? does the image show in the post edit screen? What does your page source show? what is the process that you are taking to add the image? |
|
Apr 15 |
comment |
Nivo Slider Pulling In Wrong Size Image Have you checked the code in the theme? It might be calling a specific image size in the theme files. |
|
Apr 6 |
comment |
Get page IDs from nav items It took me a while to get the code that I posted above to work. I have been trying to add your code in but I have not been able to get it to work. I took out the foreach loop and tried your line above but got nothing. How do I use your example? |
|
Mar 29 |
comment |
add_image_size() to crop images into squares? well then maybe I don't understand what you are talking about. When you put in this plugin, you would replace the featured image with a call to the aq_resize function instead. So every image uploaded by the uploader would automatically be resized to whatever size you tell it. Like so aq_resize(510, 256); You would have to do the same thing with the featured image because you would have to call every image size that you created with add_image_size. Maybe you should add more information in your question so it makes more sense. This script resizes each image on the fly. |
|
Mar 28 |
comment |
add_image_size() to crop images into squares? That plugin can be easily integrated into your theme. You upload the folder and use and include in the function.php file. It doesn't have to be a plugin. |
|
Mar 28 |
comment |
confused on the_loop All those ideas sound good and useful. I will look into get_template_part and the category-{slug} idea. Thank you |
|
Mar 28 |
comment |
confused on the_loop I found that it's the pre_get_posts that I was using to display pages on the homepage. For some reason, pre_get_posts will not allow page templates to show on the homepage. All my templates are set up by categories. So each template has it's own category that posts are made to. They work fine if the homepage would show them with the pre_get_posts |
|
Mar 28 |
comment |
get_post_meta property of non object Upon further review. I don't think there is anything wrong with my code. I am only getting it on one page which doesn't make any sense. So I must be getting the wrong line as the error. |
|
Mar 16 |
comment |
wp_editor returns the shortcode and not render the output You're welcome. |
|
Mar 6 |
comment |
checkbox in post add/edit to add/remove the post from menu I really like this idea. I would be very interested in seeing the finished product. I think a feature like this could be added as a default function in WordPress and I think you should submit the idea to the powers that be |
|
Mar 6 |
comment |
I keep getting Javascript error messages I am no code expert. The only time I have seen errors like that in coding is when I try to do something to a string that can't be done. Then I realize I am working with a string so I change my code. Could this possibly be happening to you? |