This is a follow-up question to $\kappa$ is compact $\implies$ $\kappa$ is regular. The definition I'm using for "compact" is the same as there.
I am trying to show if $\kappa$ is compact, then $\kappa$ cannot be a successor cardinal.
My first attempt was as follows: Assume $\kappa=\lambda^+$. Let $\{p_\alpha\}_{\alpha \in \kappa}$ be propositional variables, and let $p$ be $\bigvee_{\beta \in \lambda} p_\alpha$. Then the set of sentences $\Sigma=\{\neg p_\alpha\}_{\alpha \in \kappa} \cup \{p\}$ is obviously unsatisfiable, because if $p$ is true then at least some $p_\alpha$ must be true. Then, trying to reach the desired contradiction, I tried to show that any subset of $\Sigma$ having cardinality $< \kappa$ is satisfiable, but I realized this is false. (For example, $\{\neg p_\alpha\}_{\alpha \in \lambda} \cup \{p\}$ has size $\lambda < \kappa$ but it is not satisfiable.)
Perhaps there's a more creative way to pick $\Sigma$ which actually works?
I'll show something stronger: If $L_{\kappa,\omega}$ is $\kappa$-compact, then $\kappa$ is a strong limit. The result of your previous question showed that $\kappa$ is regular, so we conclude that $\kappa$ is strongly inaccessible.
Assume $\kappa$ is not a strong limit, i.e., there exists $\lambda<\kappa$ such that $2^\lambda\geq \kappa$. Work in the language with proposition symbols $\{P_\alpha\mid \alpha<\lambda\}$, and consider the $L_{\kappa,\omega}$-theory $T$: $$\left\{\lnot\left(\bigwedge_{\alpha\in X}P_\alpha\land \bigwedge_{\alpha\notin X}\lnot P_\alpha\right)\,\middle\vert\, X\subseteq \lambda \right\}.$$ Note that each conjunction in $T$ is over a set of size $\leq \lambda < \kappa$. $T$ is unsatisfiable, because it explicitly rules out any assignment of truth values to the $P_\alpha$. But $|T| = 2^\lambda \geq \kappa$, so any subset of $T$ of size $<\kappa$ is a proper subset of $T$, which is satisfiable.
Of course, in the argument above, it is possible that $|T|>\kappa$, so the argument does not go through if we only assume $L_{\kappa,\omega}$ is weakly $\kappa$-compact (meaning that $\kappa$-compactness only applies to theories of size $\leq \kappa$).
If $L_{\kappa,\omega}$ is only weakly $\kappa$-compact, we can stil prove that $\kappa$ is a limit cardinal; hence, since $\kappa$ is regular, $\kappa$ is weakly inaccessible. My previous answer gave a proof of this following the hint given by Jech in Exercise 17.17 of Set Theory (Third Millennium Edition). Jonathan's answer shows that the idea can be dramatically simplified. And here's an even simpler version:
Assume $\kappa = \lambda^+$. Work in the language with constants $\{c_\alpha\mid \alpha<\kappa\}$ and $\{d_\gamma\mid \gamma<\lambda\}$. Consider the following $L_{\kappa,\omega}$-theory $T$: $$\{c_\alpha\neq c_\beta\mid \alpha< \beta<\kappa\}\cup \{\forall x\,\bigvee_{\gamma<\lambda} x = d_\gamma\}$$ $T$ is not satisfiable, because the schema $c_\alpha\neq c_\beta$ implies that the size of a model is $\geq \kappa$, while the sentence $\forall x\,\bigvee_{\gamma<\lambda} x = d_\gamma$ ensures that the size of a model is $\leq \lambda$. But any subset $T'\subseteq T$ with $|T'|<\kappa$ only asserts that at most $\lambda$-many of the constants $c_\alpha$ are distinct, so $T'$ admits a model of cardinality $\lambda$.
So the natural question is: does weak $\kappa$-compactness of $L_{\kappa,\kappa}$ imply that $\kappa$ is a strong limit (and hence strongly inaccessible?). I didn't know the answer, but according to the comments to this MathOverflow question, the answer is no. Apparently the result is due to Solovay and Kunen, and a proof is given in the paper Infinitary compactness without strong inaccessibility by William Boos.
Note that many sources define "weakly compact cardinal" in such a way that weakly compact cardinals are strongly inaccessible. For example, Jech says a cardinal $\kappa$ is weakly compact if it is uncountable and $\kappa\to (\kappa)^2$, and this definition implies that $\kappa$ is a strong limit. Then he proves (Theorem 17.13) that if $\kappa$ is (strongly) inaccessible and the logic $L_{\kappa,\omega}$ is weakly compact, then $\kappa$ is weakly compact.