AACT
Forum Replies Created
-
Forum: Plugins
In reply to: [Shortcode Exec PHP] mysql_fetch_assoc errorHi, I don’t think this is a problem with this plugin.
Take a look at the syntax of your query – did you mean to use curly brackets? I don’t know anything about mysql but have seen round brackets before.
A couple of things might help. Put var_dump calls in for debugging to see exactly what you are getting returned from your mysql call. Have you considered not going direct to the database but using WordPress’s built in WP query functionality? It might be easier.
Forum: Plugins
In reply to: [List category posts] Styling output that includes customfield on one lineYou just need to get the divs displaying on one line so you need CSS something like this:
#lcp_instance_0 div {display:inline;}
you may want to set right margins too to get the right space between them.
Forum: Plugins
In reply to: [List category posts] Separate line for excerpt..I meant to say “You probably don’t need PHP”
Forum: Plugins
In reply to: [List category posts] Separate line for excerptCan you show us the catlist call you are making? Look under Other Notes to see the sort of tags you can put around things. A div around the excerpt may do what you want, or you may need to use some CSS (e.g. to get the sort of space you want between title and excerpt). You don’t need PHP.
Forum: Plugins
In reply to: [List category posts] Duplicate of containHi, could you explain what you mean by ‘doubloon’? Also, could you post the catlist call you are making on a page so we can see what you are trying to do. Thanks.
Forum: Plugins
In reply to: [List category posts] Display featured image as background imageSomething very odd has happened to the formatting of this set of posts. I am reposting my reply from above in the hopes this will put things back into the right format:
Do you need to use get_the_post_thumbnail to get the right URL? [see the WordPress Codex for details of its parameters].
Your code may have posted a bit strangely so I’m not sure I can quite work out what is happening with your quotes and apostrophes, you may need to check those as well.
Forum: Plugins
In reply to: [List category posts] Display featured image as background imageDo you need to use get_the_post_thumbnail to get the right URL? [see the WordPress Codex for details of its parameters].
Your code may have posted a bit strangely so I’m not sure I can quite work out what is happening with your quotes and apostrophes, you may need to check those as well.
Forum: Plugins
In reply to: [List category posts] Custom POst TYpescosmocanuck, That type of use works fine for me, but we are using a very old version of List Category Posts, and maybe there is a problem with more recent versions of the plugin?
Perhaps the author could advise?
Does it work for you if you use name=<name of category> rather than id=16?
Forum: Plugins
In reply to: [List category posts] Listing posts from multiple categoriesAh yes, it may be things are working for us (including with templates) because we dare not update to later versions of the plugin (we are on version 0.51 !!)
Forum: Plugins
In reply to: [List category posts] Really need some space between post listingsbigwavemaui, if you can tell us the url I’ll take a look and see why .lcp_catlist li isn’t working for you.
It looks as though it’s working for rmiller3000’s site which has
.lcp_catlist li {
margin-top: 15px;
}We had the same problem. If you don’t want to change the shortcode in the way hunsford suggests, it looks as though you have to explicitly allow the shortcode expansion in the input.
This advises putting the following in functions.php
add_filter( ‘wp_kses_allowed_html’, function ( $allowedposttags, $context ) {
if ( $context == ‘post’ ) {
$allowedposttags[‘a’][‘data-abc’] = 1;
}
return $allowedposttags;
}, 10, 2 );This has worked for us.
Forum: Plugins
In reply to: [List category posts] HTML customization not workingHi, did you try title_tag instead of just tag? See the plugin’s Other Notes for more detail.
Forum: Plugins
In reply to: [List category posts] Really need some space between post listingsYou probably need a bit of CSS to put a margin below and/or above each list element.
In your browser, if you right click on one of the list entries and select Inspect Element you’ll see the list entry has tag li and the list is an unordered one (ul) with class=”lcp_catlist…> so CSS something like
.lcp_catlist li {margin-top:10px;}
might be what you need. If you already using a child theme, it can go in style.css. If you don’t have a child theme, you could look at using the Jetpack plugin which has a Custom CSS Module which gives you an Edit CSS option under Appearance.
Forum: Plugins
In reply to: [List category posts] Custom Post nameI’m not sure I’m fully understanding what you want, but if you want to write something to a customfield called alttitle then you need to look up customfields in the WordPress Codex, or you could look at using a Plugin like Advanced Custom Fields.
Forum: Plugins
In reply to: [List category posts] Custom POst TYpesHi
calls of this sort:[catlist post_type=”myposttype” name=”mycategoryname”] works for me.
Can you post the catlist call you are making?